cmd

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ResultPrinter is the printer used to print command results and errors.

View Source
var RootCmd = &cobra.Command{
	Use:   "keyvault-cli",
	Short: "KeyVault CLI",
	Long:  `keyvault-cli is a CLI for running KeyVault operations.`,
}

RootCmd represents the base command when called without any sub-commands.

Functions

func AddNetworkFlag

func AddNetworkFlag(c *cobra.Command)

AddNetworkFlag adds the network flag to the command

func Execute

func Execute()

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

func GetNetworkFlagValue

func GetNetworkFlagValue(c *cobra.Command) (core.Network, error)

GetNetworkFlagValue gets the network flag from the command

Types

This section is empty.

Jump to

Keyboard shortcuts

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