Documentation
¶
Index ¶
- func Common(cfg *config.Config, embedded config.Embedded, args []string) (tools.Tools, *logger.Logger, error)
- func Debug(format string, args ...interface{})
- func FromEnvOrFile(keys ...string) (string, error)
- func GetCommand(cmd *cobra.Command, command string) *cobra.Command
- func KCreateSubcommandPreRunE(name string, cfg Trackable, show *bool) func(cmd *cobra.Command, arg []string) error
- type CommandPath
- type Trackable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromEnvOrFile ¶
Types ¶
type CommandPath ¶ added in v0.0.13
type CommandPath []string
func BuildCommandPath ¶ added in v0.0.13
func BuildCommandPath(cmd *cobra.Command) CommandPath
func (CommandPath) Env ¶ added in v0.0.13
func (c CommandPath) Env() utils.Prefix
func (CommandPath) Last ¶ added in v0.0.13
func (c CommandPath) Last() string
func (CommandPath) Section ¶ added in v0.0.13
func (c CommandPath) Section() utils.Prefix
func (CommandPath) WithoutRoot ¶ added in v0.0.13
func (c CommandPath) WithoutRoot() CommandPath
Click to show internal directories.
Click to hide internal directories.