Documentation ¶
Index ¶
- func Execute()
- func SetVersion(_version string)
- func Version() string
- type Context
- func (c *Context) BaseDigestConfig() (digest.Config, error)
- func (c *Context) Close()
- func (c *Context) DeltaDigestConfig() (digest.Config, error)
- func (c Context) GetIncludeColumnPositions() digest.Positions
- func (c *Context) GetPrimaryKeys() digest.Positions
- func (c *Context) GetValueColumns() digest.Positions
- type Formatter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func SetVersion ¶
func SetVersion(_version string)
SetVersion will set the version of the cmd package
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context is to store all command line Flags.
func NewContext ¶
func NewContext( fs afero.Fs, primaryKeyPositions []int, valueColumnPositions []int, ignoreValueColumnPositions []int, includeColumnPositions []int, format string, baseFilename string, deltaFilename string, separator rune, lazyQuotes bool, ) (*Context, error)
NewContext can take all CLI flags and create a cmd.Context Validations are done as part of this. File pointers are created too.
func (*Context) BaseDigestConfig ¶
BaseDigestConfig creates a digest.Context from cmd.Context that is needed to start the diff process
func (*Context) DeltaDigestConfig ¶
DeltaDigestConfig creates a digest.Context from cmd.Context that is needed to start the diff process
func (Context) GetIncludeColumnPositions ¶
GetIncludeColumnPositions is to return the --include flags as digest.Positions array. If empty, it is value columns
func (*Context) GetPrimaryKeys ¶
GetPrimaryKeys is to return the --primary-key flags as digest.Positions array.
func (*Context) GetValueColumns ¶
GetValueColumns is to return the --columns flags as digest.Positions array.
type Formatter ¶
type Formatter struct {
// contains filtered or unexported fields
}
Formatter can print the differences to stdout and accompanying metadata to stderr
func NewFormatter ¶
NewFormatter can be used to create a new formatter