cli

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package cli provides a command line interface client.

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 is the base bootcmd command.
	RootCmd = &cobra.Command{
		Use:   "bootcmd",
		Short: "A command line client for the matchbox service.",
		Long: `A CLI for the matchbox Service

To get help about a resource or command, run "bootcmd help resource"`,
	}
)

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