cmd

package
v2.1.0-alpha+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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