gcmd

package
v1.5.9 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package gcmd provides console operations, like options/values reading and command running.

命令行管理.

Index

Constants

This section is empty.

Variables

View Source
var Option = &gCmdOption{} // 终端参数-选项参数列表
View Source
var Value = &gCmdValue{} // 终端参数-命令参数列表

终端管理对象(全局)

Functions

func AutoRun

func AutoRun() error

自动识别命令参数并执行命令参数对应的函数

func BindHandle

func BindHandle(cmd string, f func()) error

绑定命令行参数及对应的命令函数,注意命令函数参数是函数的内存地址 如果操作失败返回错误信息

func RunHandle

func RunHandle(cmd string) error

执行命令对应的函数

Types

This section is empty.

Jump to

Keyboard shortcuts

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