cmd

package
v0.0.0-alpha.14 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(args []string)

Types

type App

type App interface {
	Exit(code int)
	Printf(format string, a ...interface{}) (n int, err error)
	Command(name string) (func([]string, *types.Config) error, bool)
}
var (
	// DefaultLogLevel defines the initial log level, which is overriden
	// by any LogLevel defined at the user-level configuration file.
	DefaultLogLevel     = "DEBUG"
	ConsoleApp      App = newConsole()
)

type Console

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

func (*Console) Command

func (c *Console) Command(name string) (func([]string, *types.Config) error, bool)

func (*Console) Exit

func (*Console) Exit(code int)

func (*Console) Printf

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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