Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLIConfig ¶
type CLIConfig[T c.Validatable] struct { ConfigFile *c.ConfigFile[T] Command *cli.Command }
CLIConfig groups the configuration file and CLI command for configuration management.
func NewCLIConfig ¶
func NewCLIConfig[T c.Validatable](configFile *c.ConfigFile[T]) (*CLIConfig[T], error)
NewCLIConfig builds a CLI configuration helper for the provided application. When configFile is nil a default config file is built using the supplied options. The application name defaults to the executable name but can be overridden with config.WithAppName.
func (*CLIConfig[T]) AddSubcommands ¶
AddSubcommands appends additional CLI commands under the "conf" namespace.
Click to show internal directories.
Click to hide internal directories.