cmd

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "kv",
	Short: "kv is tool for managing key/value pairs in consul",
	Long:  `Use kv to read, set or update key/value pairs in consul`,
}

RootCmd represents the base command when called without any subcommands

Functions

func Del added in v1.1.0

func Del(cmd *cobra.Command, args []string)

Del deletes key/value pairs by key

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.

func Get

func Get(cmd *cobra.Command, args []string)

Get fetches key values

func Set

func Set(cmd *cobra.Command, args []string)

Set sets key/value pairs

Types

This section is empty.

Jump to

Keyboard shortcuts

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