cmd

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultLogLevel defines the initial log level, which is overridden
	// by any LogLevel defined at the user-level configuration file.
	DefaultLogLevel             = "INFO"
	ConsoleApp      command.App = newConsole()
)

Functions

func Exec

func Exec(args []string)

Types

type Console

type Console struct {
	// contains filtered or unexported fields
}

func (*Console) Args

func (c *Console) Args() []string

func (*Console) Command

func (c *Console) Command(name string) bool

func (*Console) ExecName

func (*Console) ExecName() string

func (*Console) Exit

func (*Console) Exit(code int)

func (*Console) Printf

func (*Console) Printf(format string, a ...any) (n int, err error)

func (*Console) ProfileConfig

func (c *Console) ProfileConfig(profile string) *types.Config

func (*Console) RunSubCommand

func (c *Console) RunSubCommand() error

func (*Console) Usage

func (c *Console) Usage(format string)

func (*Console) UserConfig

func (c *Console) UserConfig() *types.Config

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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