Documentation
¶
Index ¶
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 ¶ added in v1.1.0
func SetVersion(_version string)
SetVersion will set the version of the cmd package
Types ¶
type Config ¶
type Config struct {
PrimaryKeyPositions []int
ValueColumnPositions []int
IncludeColumnPositions []int
Format string
}
Config is to store all command line Flags.
func (*Config) GetIncludeColumnPositions ¶ added in v1.1.0
GetIncludeColumnPositions is to return the --include flags as digest.Positions array. If empty, it is value columns
func (*Config) GetPrimaryKeys ¶
GetPrimaryKeys is to return the --primary-key flags as digest.Positions array.
func (*Config) GetValueColumns ¶
GetValueColumns is to return the --columns flags as digest.Positions array.
type Formatter ¶ added in v1.0.0
type Formatter struct {
// contains filtered or unexported fields
}
Formatter can print the differences to stdout and accompanying metadata to stderr
func NewFormatter ¶ added in v1.2.0
NewFormatter can be used to create a new formatter