Documentation ¶
Overview ¶
Package cmd implements the command line interface (CLI) for the agentctl tool.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{
Use: "agentctl",
Short: "A CLI tool for the vnf-agent",
Long: `
A CLI tool to show the state of and to configure agents connected to
Etcd. Use the 'ETCDV3_ENDPOINTS'' environment variable or the 'endpoints'
flag in the command line to specify one or more Etcd instances to
connect to.`,
Example: `Specify the etcd to connect to and list all agents that it knows about:
$ export ETCDV3_ENDPOINTS=172.17.0.1:2379
$ ./agentctl list
Do as above, but with a command line flag:
$ ./agentctl --endpoints 172.17.0.1:2379 list
`,
}
RootCmd represents the base command when called without any subcommands
Functions ¶
This section is empty.
Types ¶
type GlobalFlags ¶
GlobalFlags defines a single type to hold all cobra global flags.
Click to show internal directories.
Click to hide internal directories.