command

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2021 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdStart = cli.Command{
	Name:        "start",
	Usage:       "start agent",
	Description: "start agent client",
	Action:      runStart,
	Flags: []cli.Flag{
		cli.StringFlag{
			Name:  "f",
			Value: "/etc/agent.conf",
			Usage: "default config file:/etc/agent.conf",
		},
		cli.StringFlag{
			Name:  "cpuprofile",
			Value: "",
			Usage: "CPU pprof file",
		},
		cli.StringFlag{
			Name:  "memprofile",
			Value: "",
			Usage: "Memory pprof file",
		},
	},
}
View Source
var CmdStop = cli.Command{
	Name:        "stop",
	Usage:       "stop agent",
	Description: "stop agent client",
	Action:      runStop,
	Flags: []cli.Flag{
		cli.StringFlag{
			Name:  "m",
			Value: "normal",
			Usage: "stop agent mode",
		},
	},
}
View Source
var CmdVersion = cli.Command{
	Name:        "version",
	Usage:       "show version",
	Description: "show version",
	Action:      runVersion,
}

Functions

func Notify

func Notify()
func PrintLogo()

func WindowsStart added in v0.2.0

func WindowsStart()

Types

This section is empty.

Jump to

Keyboard shortcuts

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