Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GreenBg = string([]byte{27, 91, 57, 55, 59, 52, 50, 109}) RedBg = string([]byte{27, 91, 57, 55, 59, 52, 49, 109}) Red = string([]byte{27, 91, 57, 49, 109}) Cyan = string([]byte{27, 91, 51, 54, 109}) YellowBg = string([]byte{27, 91, 57, 48, 59, 52, 51, 109}) Yellow = string([]byte{27, 91, 51, 51, 109}) Cls = "\033[2J\033[H" Reset = string([]byte{27, 91, 48, 109}) // > Cursor = "\033[?25h>" )
Functions ¶
func ParseFlagArgs ¶
Types ¶
type Cmd ¶
type Cmd struct {
Cmd string `json:"cmd"`
Arg string `json:"arg"`
Raw json.RawMessage `json:"raw"`
}
type Command ¶
type Command struct {
N string
Opt Option
Flag struct {
Using bool
SubtitleGroup string `short:"g" long:"group" required:"false"`
MustContain string `long:"mc" required:"false"`
MustNotContain string `long:"mn" required:"false"`
UseRegex bool `long:"rg" required:"false"`
Index int `short:"i" long:"index" required:"false"`
Name string `short:"n" long:"name" required:"false"`
}
Err error
}
Click to show internal directories.
Click to hide internal directories.