cmd

package
v1.9.0-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package cmd implements a command line interface (CLI) for 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 'ETCD_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 ETCD_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

type GlobalFlags struct {
	Endpoints []string
	Label     string
}

GlobalFlags defines a single type to hold all cobra global flags.

Jump to

Keyboard shortcuts

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