cli

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: MIT Imports: 19 Imported by: 16

Documentation

Index

Constants

View Source
const (
	USER = "USER"
	HOME = "HOME"
	PATH = "PATH"
)
View Source
const (
	DIR = "dir"
	ENV = "env"
	API = "api"
	PID = "pid"
	PWD = "pwd"
)
View Source
const (
	ERROR = "error"
	BUILD = "build"
	ORDER = "order"
	SPAWN = "spawn"
	CHECK = "check"
	BENCH = "bench"
	PPROF = "pprof"

	START   = "start"
	RESTART = "restart"
	RELOAD  = "reload"
	STOP    = "stop"

	OPEN  = "open"
	CLOSE = "close"
	BEGIN = "begin"
	END   = "end"
)
View Source
const (
	FG   = "fg"
	BG   = "bg"
	SIZE = "size"

	DARK  = 255
	LIGHT = 127
)
View Source
const (
	BLACK   = "black"
	RED     = "red"
	GREEN   = "green"
	YELLOW  = "yellow"
	BLUE    = "blue"
	MAGENTA = "magenta"
	CYAN    = "cyan"
	WHITE   = "white"
	RANDOM  = "random"
)
View Source
const (
	MAKE = "make"
	TEST = "test"
	CONF = "conf"
	HOST = "host"
	BOOT = "boot"
	NODE = "node"
)
View Source
const (
	SOURCE = "source"
	TARGET = "target"
)
View Source
const (
	GOARCH  = "GOARCH"
	GOOS    = "GOOS"
	LINUX   = "linux"
	DARWIN  = "darwin"
	WINDOWS = "windows"
	AMD64   = "amd64"
	I386    = "386"
	ARM     = "arm"
)
View Source
const (
	CTX_SHY = "ctx_shy"
	CTX_DEV = "ctx_dev"
	CTX_OPS = "ctx_ops"

	CTX_PID   = "ctx_pid"
	CTX_LOG   = "ctx_log"
	CTX_USER  = "ctx_user"
	CTX_SHARE = "ctx_share"
	CTX_RIVER = "ctx_river"
)
View Source
const (
	HOSTNAME = "hostname"
	PATHNAME = "pathname"
	USERNAME = "username"
)
View Source
const (
	IFCONFIG = "ifconfig"
	HOSTINFO = "hostinfo"
	USERINFO = "userinfo"
	PROCINFO = "procinfo"
	BOOTINFO = "bootinfo"
	DISKINFO = "diskinfo"
)
View Source
const (
	CMD_DIR = "cmd_dir"
	CMD_ENV = "cmd_env"

	CMD_INPUT  = "cmd_input"
	CMD_OUTPUT = "cmd_output"
	CMD_ERRPUT = "cmd_errput"

	CMD_OUT = "cmd_out"
	CMD_ERR = "cmd_err"
)
View Source
const CLI = "cli"
View Source
const DAEMON = "daemon"
View Source
const QRCODE = "qrcode"
View Source
const RUNTIME = "runtime"
View Source
const SYSTEM = "system"

Variables

View Source
var Index = &ice.Context{Name: CLI, Help: "命令模块"}

Functions

func Color

func Color(m *ice.Message, c string, str interface{}) string

func ColorGreen

func ColorGreen(m *ice.Message, str interface{}) string

func ColorRed

func ColorRed(m *ice.Message, str interface{}) string

func ColorYellow

func ColorYellow(m *ice.Message, str interface{}) string

func Inputs

func Inputs(m *ice.Message, field string) bool

func IsSuccess added in v0.6.1

func IsSuccess(m *ice.Message) bool

func NodeInfo

func NodeInfo(m *ice.Message, kind, name string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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