cmd

package
v0.0.0-...-457f07e Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogExec

func LogExec(cmd *exec.Cmd) *exec.Cmd

func Run

func Run(main func(ctx context.Context) error) (err error)

Types

type Args

type Args = []string

type ArgsList

type ArgsList = []Args

type LogOptions

type LogOptions struct {
	Verbosity    int  `name:"verbose" short:"v" type:"counter" default:"0" env:"LOG_LEVEL" help:"Set the verbosity of logs e.g. -vv."`
	LogTimestamp bool `default:"false" env:"LOG_TIMESTAMP" help:"Add timestamp to log output"`
}

func (*LogOptions) ConfigureLog

func (lo *LogOptions) ConfigureLog() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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