common

package
v0.0.13-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Common

func Common(cfg *config.Config, embedded config.Embedded, args []string) (tools.Tools, *logger.Logger, error)

func Debug

func Debug(format string, args ...interface{})

func FromEnvOrFile

func FromEnvOrFile(keys ...string) (string, error)

func GetCommand

func GetCommand(cmd *cobra.Command, command string) *cobra.Command

func KCreateSubcommandPreRunE added in v0.0.13

func KCreateSubcommandPreRunE(name string, cfg Trackable, show *bool) func(cmd *cobra.Command, arg []string) error

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

type Trackable added in v0.0.13

type Trackable interface {
	StoreTracker(tracker *koanfx.Tracker)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL