Versions in this module Expand all Collapse all v1 v1.0.1 Sep 18, 2024 v1.0.0 May 17, 2024 Changes in this version + const HomeFlag + const OutputFlag + const TraceFlag + func BindFlagsLoadViper(cmd *cobra.Command, args []string) error + func InitEnv(prefix string) + func NewCompletionCmd(rootCmd *cobra.Command, hidden bool) *cobra.Command + func PrepareBaseCmd(cmd *cobra.Command, envPrefix, defaultHome string) *cobra.Command + func RunWithArgs(ctx context.Context, cmd *cobra.Command, args []string, env map[string]string) error + func RunWithTrace(ctx context.Context, cmd *cobra.Command) error + func WriteConfigVals(dir string, vals map[string]string) error + type Executable interface + Execute func() error + type Executor struct + Exit func(int) + func (e Executor) Execute() error + type ExitCoder interface + ExitCode func() int