Documentation
¶
Index ¶
- Variables
- func CombineArgs(args []string) string
- func GetCompleter(cmd *Cmd) func(d prompt.Document) []prompt.Suggest
- func GetExecutor(cmd *Cmd) func(s string)
- func ParseCmd(input string) (string, []string)
- func ParseCmd4Cli(cmd []string) (name string, options []string)
- type Auth
- type Cmd
- type Config
- type SuggestCache
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownCmd = errors.New("unknown command")
Functions ¶
func CombineArgs ¶ added in v0.5.1
CombineArgs The input parameter is an array of string ([]string), and the function combines the array elements into a string. Each element string should be enclosed in a pair of double quotes, and the elements are separated by spaces. In particular, if the string content of the array element contains double quotes, then the double quotes should be replaced with the escape character "\"".
func GetCompleter ¶
func GetCompleter(cmd *Cmd) func(d prompt.Document) []prompt.Suggest
func GetExecutor ¶
func ParseCmd4Cli ¶ added in v0.5.1
ParseCmd4Cli zk command parsing, cli simplified version
Types ¶
type SuggestCache ¶
type SuggestCache struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.