Documentation ¶
Overview ¶
Package edmain (EffDump MAIN) implements the CLI integration of the tool.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compress ¶
Compress compresses `kvs` into a byte stream suitable for saving to disk. It's a gzip compressed textar with sepch used as the separator character. Returns an error if kvs is not sorted or encoding hit internal limits.
Types ¶
type Params ¶
type Params struct { Name string Effects []keyvalue.KV Stdout io.Writer Args []string Env []string Flagset *flag.FlagSet // for Usage(). VSHasChanges func(context.Context) (dirty bool, err error) VSResolve func(ctx context.Context, revision string) (version string, err error) // Flags. Must be parsed by the caller after RegisterFlags. Address string Color string ContextLines int Force bool Revision string Sepch string Subkey string Template string Version string Watch bool RMRegexp string // contains filtered or unexported fields }
Params contains most of the I/O dependencies for the Run().
func (*Params) RegisterFlags ¶
RegisterFlags registers effdump's flags into a flagset.
Click to show internal directories.
Click to hide internal directories.