mir_cli

package
v0.0.0-...-ccaa6ab Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Args

func Args() []string

func Parse

func Parse() error

func Setup

func Setup(appName string, options ...func(*mirCli))

func WithConfigFilePath

func WithConfigFilePath(out *string) func(*mirCli)

func WithDescription

func WithDescription(desc string) func(*mirCli)

func WithLogDebug

func WithLogDebug(out *bool) func(*mirCli)

func WithLogLevel

func WithLogLevel(out *LogLevel) func(*mirCli)

func WithManual

func WithManual(desc string, defaultConfig any, envVars bool, extra string) func(*mirCli)

func WithOsFlag

func WithOsFlag(fn func()) func(*mirCli)

Types

type LogLevel

type LogLevel = string
const (
	LogLevelTrace   LogLevel = "trace"
	LogLevelDebug   LogLevel = "debug"
	LogLevelInfo    LogLevel = "info"
	LogLevelWarning LogLevel = "warn"
	LogLevelError   LogLevel = "error"
	LogLevelFatal   LogLevel = "fatal"
)

Jump to

Keyboard shortcuts

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