Documentation ¶
Index ¶
- Variables
- func AddAccumulateFlag(c *cobra.Command)
- func AddIndexFlag(c *cobra.Command)
- func AddNetworkFlag(c *cobra.Command)
- func AddResponseTypeFlag(c *cobra.Command)
- func AddSeedFlag(c *cobra.Command)
- func Execute()
- func GetAccumulateFlagValue(c *cobra.Command) (bool, error)
- func GetIndexFlagValue(c *cobra.Command) (int, error)
- func GetNetworkFlagValue(c *cobra.Command) (core.Network, error)
- func GetSeedFlagValue(c *cobra.Command) (string, error)
- type ResponseType
Constants ¶
This section is empty.
Variables ¶
var ResultPrinter printer.Printer = printer.NewStandardOutputPrinter()
ResultPrinter is the printer used to print command results and errors.
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 AddAccumulateFlag ¶ added in v1.3.0
AddAccumulateFlag adds the accumulate flag to the command
func AddIndexFlag ¶ added in v1.3.0
AddIndexFlag adds the index flag to the command
func AddNetworkFlag ¶
AddNetworkFlag adds the network flag to the command
func AddResponseTypeFlag ¶ added in v1.3.0
AddResponseTypeFlag adds the response-type flag to the command
func AddSeedFlag ¶ added in v1.3.0
AddSeedFlag adds the seed 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 GetAccumulateFlagValue ¶ added in v1.3.0
GetAccumulateFlagValue gets the accumulate flag from the command
func GetIndexFlagValue ¶ added in v1.3.0
GetIndexFlagValue gets the index flag from the command
func GetNetworkFlagValue ¶
GetNetworkFlagValue gets the network flag from the command
Types ¶
type ResponseType ¶ added in v1.3.0
type ResponseType string
ResponseType represents the network.
const ( // StorageResponseType represents the storage response type. StorageResponseType ResponseType = "storage" // ObjectResponseType represents the storage response type. ObjectResponseType ResponseType = "object" )
Available response types.
func GetResponseTypeFlagValue ¶ added in v1.3.0
func GetResponseTypeFlagValue(c *cobra.Command) (ResponseType, error)
GetResponseTypeFlagValue gets the response-type flag from the command
func ResponseTypeFromString ¶ added in v1.3.0
func ResponseTypeFromString(n string) ResponseType
ResponseTypeFromString returns response type from the given string value