cmd

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmds = map[string]CmdFunc{}
View Source
var Suggests = map[string]SuggestFunc{}
View Source
var ToolCmds = map[string]CmdFunc{}

Functions

func AddRootCommand

func AddRootCommand(name string, cmdFunc CmdFunc, suggestFunc SuggestFunc)

func AddToolCommand

func AddToolCommand(name string, cmdFunc CmdFunc, suggestFunc SuggestFunc)

func InitCmd

func InitCmd()

Types

type CmdFunc

type CmdFunc = func([]string)

type SuggestFunc

type SuggestFunc = func([]string, string, string) []prompt.Suggest

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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