Documentation
¶
Index ¶
Constants ¶
View Source
const ( FS = "\t" DumpCommand = "dump" )
View Source
const (
CheckCommand = "check"
)
View Source
const (
FixCommand = "fix"
)
Variables ¶
This section is empty.
Functions ¶
func SubCommand ¶
Types ¶
type Check ¶
type Check struct { CheckFix // contains filtered or unexported fields }
Check is the check sub-command.
type CheckFix ¶ added in v0.1.0
type CheckFix struct { Backup bool `option:"backup"` Dry bool `option:"dry-run|n"` Git internal.GitOption `option:"git"` Jobs uint64 `option:"jobs|j"` NoTools []string `option:"no-tool|T"` Paths []string Progress string `option:"progress|p"` Tools []string `option:"tool|t"` // contains filtered or unexported fields }
CheckFix is base for the check and fix sub-commands.
type Dump ¶
type Dump struct { Output Paths []string Tools []string `option:"tool|t"` Separator string `option:"separator|F"` SubCommand Command Null bool `option:"null-terminated|z"` Sort bool `option:"sort"` }
type Output ¶
type Output struct { Output string `option:"output|o"` // contains filtered or unexported fields }
type RootCommand ¶
func NewRootCommand ¶
func NewRootCommand(ctx context.Context, args ...string) (*RootCommand, error)
func (*RootCommand) Close ¶
func (cmd *RootCommand) Close() error
Click to show internal directories.
Click to hide internal directories.