cmd

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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