cmd

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add added in v0.2.1

func Add(cmd Commend)

Add 添加命令行

func ConsoleParse added in v0.2.4

func ConsoleParse()

func Exec added in v0.2.1

func Exec(name string, args []string) error

Exec 执行命令行(由框架完成此操作)

func SetDefault added in v0.2.7

func SetDefault(cmd Commend)

SetDefault 设置默认执行命令 -无任何参数的清情况下

Types

type Commend

type Commend struct {
	Name    string
	Explain string
	Handler func(args []string)
}

Jump to

Keyboard shortcuts

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