Documentation ¶
Index ¶
- Variables
- func Dbg(msg string)
- func Error(err error, exit bool)
- func Info(msg string)
- func Parse(args []string) (instruction string)
- func ParseForDebug(args []string)
- func ParseForHelp(args []string)
- func ParseForVersion(args []string)
- func Separator()
- func Warning(msg string)
- type ProgArg
- type Stopwatch
Constants ¶
This section is empty.
Variables ¶
View Source
var DebugProgArg = ProgArg{ Name: "Debug", Short: "d", Long: "debug", Help: "Enabled Debug output", Func: func(_ string) error { global.Cfg.Debug = true Dbg("Debug output enabled") return nil }, }
View Source
var HelpProgArg = ProgArg{ Name: "Help", Short: "h", Long: "help", Help: "", HasData: false, Func: help, }
View Source
var Logo = cfmt.Sprint(`
______ __
/\ __ \ /\ \
\ \ __ \ \ \ \
\ \_\ \_\ \ \_\
\/_/\/_/ \/_/
______ __ __ ______ __ __
/\ ___\ /\ \_\ \ /\ ___\ /\ \ /\ \
\ \___ \ \ \ __ \ \ \ __\ \ \ \____ \ \ \____
\/\_____\ \ \_\ \_\ \ \_____\ \ \_____\ \ \_____\
\/_____/ \/_/\/_/ \/_____/ \/_____/ \/_____/
by Sett {{https://github.com/Sett17/ai-shell}}::green
`)
View Source
var ProgArgs = []ProgArg{}
Functions ¶
func ParseForDebug ¶
func ParseForDebug(args []string)
func ParseForHelp ¶
func ParseForHelp(args []string)
func ParseForVersion ¶
func ParseForVersion(args []string)
Types ¶
type Stopwatch ¶
type Stopwatch struct {
// contains filtered or unexported fields
}
func NewStopWatch ¶
func (*Stopwatch) SetStartTimeAndStart ¶
Click to show internal directories.
Click to hide internal directories.