Documentation ¶
Index ¶
- Constants
- Variables
- func BinPath(arg ...string) string
- func Color(m *ice.Message, c string, str ice.Any) string
- func ColorGreen(m *ice.Message, str ice.Any) string
- func ColorRed(m *ice.Message, str ice.Any) string
- func ColorYellow(m *ice.Message, str ice.Any) string
- func EtcPath(m *ice.Message) (res []string)
- func IsAlpine(m *ice.Message, arg ...string) bool
- func IsCentos(m *ice.Message, arg ...string) bool
- func IsSuccess(m *ice.Message) bool
- func IsSystem(m *ice.Message, arg ...string) bool
- func IsUbuntu(m *ice.Message, arg ...string) bool
- func IsWindows() bool
- func NodeInfo(m *ice.Message, arg ...string)
- func OpenCmds(m *ice.Message, arg ...string) *ice.Message
- func Opens(m *ice.Message, arg ...string)
- func ParseCliColor(color string) string
- func ParseColor(color string) color.Color
- func SystemCmds(m *ice.Message, cmds string, args ...ice.Any) string
- func SystemExec(m *ice.Message, arg ...string) string
- func SystemFind(m *ice.Message, bin string, dir ...string) string
Constants ¶
View Source
const ( BG = "bg" FG = "fg" COLOR = "color" BLACK = "black" WHITE = "white" BLUE = "blue" RED = "red" GRAY = "gray" CYAN = "cyan" GREEN = "green" SILVER = "silver" PURPLE = "purple" YELLOW = "yellow" RANDOM = "random" TRANS = "#0000" LIGHT = "light" DARK = "dark" )
View Source
const ( DIR = "dir" ENV = "env" API = "api" MOD = "mod" PID = "pid" PWD = "pwd" )
View Source
const ( BUILD = "build" ORDER = "order" SPAWN = "spawn" CHECK = "check" BENCH = "bench" PPROF = "pprof" TIMEOUT = "timeout" STATUS = "status" ERROR = "error" CLEAR = "clear" DELAY = "delay" RELOAD = "reload" RESTART = "restart" BEGIN = "begin" END = "end" START = "start" STOP = "stop" OPEN = "open" CLOSE = "close" MAIN = "main" CODE = "code" COST = "cost" FROM = "from" BACK = "back" )
View Source
const ( CMD = "cmd" ADD = "add" OSID = "osid" REPOS = "repos" UBUNTU = "ubuntu" CENTOS = "centos" ALPINE = "alpine" BUSYBOX = "busybox" RELEASE = "release" ETC_OS_RELEASE = "/etc/os-release" ETC_APK_REPOS = "/etc/apk/repositories" )
View Source
const ( MAKE = "make" TEST = "test" HOST = "host" CONF = "conf" BOOT = "boot" NODE = "node" )
View Source
const ( GOARCH = "GOARCH" AMD64 = "amd64" X86 = "386" ARM = "arm" ARM64 = "arm64" MIPSLE = "mipsle" GOOS = "GOOS" LINUX = "linux" MACOS = "macos" DARWIN = "darwin" WINDOWS = ice.WINDOWS )
View Source
const ( PATH = "PATH" HOME = "HOME" USER = "USER" TERM = "TERM" SHELL = "SHELL" LANG = "LANG" TZ = "TZ" )
View Source
const ( CTX_SHY = "ctx_shy" CTX_COM = "ctx_com" CTX_HUB = "ctx_hub" CTX_DEV = "ctx_dev" CTX_OPS = "ctx_ops" CTX_PID = "ctx_pid" CTX_LOG = "ctx_log" CTX_POD = "ctx_pod" CTX_ENV = "ctx_env" )
View Source
const ( HOSTNAME = "hostname" PATHNAME = "pathname" USERNAME = "username" )
View Source
const ( IFCONFIG = "ifconfig" DISKINFO = "diskinfo" HOSTINFO = "hostinfo" USERINFO = "userinfo" PROCSTAT = "procstat" PROCINFO = "procinfo" PROCKILL = "prockill" BOOTINFO = "bootinfo" MAXPROCS = "maxprocs" )
View Source
const ( CMD_DIR = "cmd_dir" CMD_ENV = "cmd_env" CMD_INPUT = "cmd_input" CMD_OUTPUT = "cmd_output" CMD_ERRPUT = "cmd_errput" CMD_ERR = "cmd_err" CMD_OUT = "cmd_out" MAN = "man" RUN = "run" KILL = "kill" FIND = "find" GREP = "grep" EXEC = "exec" ECHO = "echo" REST = "rest" OPENS = "opens" )
View Source
const CLI = "cli"
View Source
const DAEMON = "daemon"
View Source
const FOREVER = "forever"
View Source
const MIRRORS = "mirrors"
View Source
const QRCODE = "qrcode"
View Source
const RUNTIME = "runtime"
View Source
const (
SIZE = "size"
)
View Source
const SYSTEM = "system"
Variables ¶
Functions ¶
func SystemCmds ¶ added in v1.4.3
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.