Documentation ¶ Index ¶ Variables func CheckCommandJson() ([]byte, error) func Execute() func NewSearchCommand() *cobra.Command func NewShowCommand() *cobra.Command func NewUpdateCommand() *cobra.Command func NewUpgradeCommand() *cobra.Command func NewVersionCommand() *cobra.Command Constants ¶ This section is empty. Variables ¶ View Source var ( ErrCommandNotFound = errors.New("command not found") // 未找到命令错误 ) Functions ¶ func CheckCommandJson ¶ func CheckCommandJson() ([]byte, error) 检查本地命令数据文件,不存在则写入内嵌模板 func Execute ¶ func Execute() Execute 启动命令行程序 func NewSearchCommand ¶ func NewSearchCommand() *cobra.Command 创建 search 子命令 func NewShowCommand ¶ func NewShowCommand() *cobra.Command 创建 show 子命令 func NewUpdateCommand ¶ func NewUpdateCommand() *cobra.Command 创建 upcommands 子命令 func NewUpgradeCommand ¶ func NewUpgradeCommand() *cobra.Command 创建 upgrade 子命令 func NewVersionCommand ¶ func NewVersionCommand() *cobra.Command 创建 version 子命令 Types ¶ This section is empty. Source Files ¶ View all Source files root.gosearch.goshow.goupcommands.goupgrade.goversion.go Click to show internal directories. Click to hide internal directories.