Documentation
¶
Index ¶
Constants ¶
View Source
const ( Name = "gh-secrets-sync" // FlagConfig is the name of the global --config flag. FlagConfig = "config" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*options)
Option is a functional option for configuring the root command.
func WithCommand ¶
WithCommand appends a single sub-command to the root command. Call it multiple times to register multiple sub-commands.
func WithOnInit ¶
func WithOnInit(fn cli.BeforeFunc) Option
WithOnInit sets the Before hook called before every command invocation.
func WithVersion ¶
WithVersion sets the version string shown by --version.
Click to show internal directories.
Click to hide internal directories.