cmd

package
v0.0.0-...-d31a3df Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WorkDir = "/root/.skrctl"
)

Variables

View Source
var C = newConf()

Functions

func Add

func Add(services ...string)

func Args

func Args(ss *[]string) []string

参数处理,简写&&防止重复

func AsciiTable

func AsciiTable(slice interface{}) string

AsciiTable formats slice of structs data and returns the resulting string.(Using standard ascii characters)

func Disable

func Disable(services ...string)

func Enable

func Enable(services ...string)

func Output

func Output(slice interface{})

Output formats slice of structs data and writes to standard output.(Using box drawing characters)

func OutputA

func OutputA(slice interface{})

OutputA formats slice of structs data and writes to standard output.(Using standard ascii characters)

func Remove

func Remove(force bool, services ...string)

func Start

func Start(services ...string)

尝试部署并启动服务

func Status

func Status(services ...string)

func Stop

func Stop(services ...string)

func StringLength

func StringLength(r []rune) int

StringLength string display length

func Table

func Table(slice interface{}) string

Table formats slice of structs data and returns the resulting string.(Using box drawing characters)

Types

This section is empty.

Jump to

Keyboard shortcuts

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