cli

package
v0.0.0-...-a2a6062 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExitSuccess = iota
	ExitError
	ExitBadConnection
	ExitBadArgs = 128
)

CLI Tool errors http://tldp.org/LDP/abs/html/exitcodes.html

Variables

View Source
var (
	RootCmd = &cobra.Command{
		Use:   "cli",
		Short: "A command line utility for managing Cisco Nexus Switches",
		Long: `A command line utility for managing Cisco Nexus Switches
                  to get help about a resource or command run 
                  "nxsctl help resource"`,
	}
)

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

This section is empty.

Jump to

Keyboard shortcuts

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