Documentation
¶
Overview ¶
Package cmd implements all Stripe CLI commands.
Index ¶
- Variables
- func Execute(ctx context.Context)
- func ReBindKeys()
- func WrappedInheritedFlagUsages(cmd *cobra.Command) string
- func WrappedLocalFlagUsages(cmd *cobra.Command) string
- func WrappedNonRequestParamsFlagUsages(cmd *cobra.Command) string
- func WrappedRequestParamsFlagUsages(cmd *cobra.Command) string
- type FixturesCmd
- type LogsCmd
Constants ¶
This section is empty.
Variables ¶
var Config config.Config
Config is the cli configuration for the user
Functions ¶
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 ReBindKeys ¶ added in v1.13.1
func ReBindKeys()
ReBindKeys applies the value found in viper config to the cobra flag when viper has a value (possibly from env)
func WrappedInheritedFlagUsages ¶ added in v0.5.0
WrappedInheritedFlagUsages returns a string containing the usage information for all flags which were inherited from parent commands, wrapped to the terminal's width.
func WrappedLocalFlagUsages ¶ added in v0.5.0
WrappedLocalFlagUsages returns a string containing the usage information for all flags specifically set in the current command, wrapped to the terminal's width.
func WrappedNonRequestParamsFlagUsages ¶ added in v0.7.0
WrappedNonRequestParamsFlagUsages returns a string containing the usage information for all non-request parameters flags. The string is wrapped to the terminal's width.
func WrappedRequestParamsFlagUsages ¶ added in v0.7.0
WrappedRequestParamsFlagUsages returns a string containing the usage information for all request parameters flags, i.e. flags used in operation commands to set values for request parameters. The string is wrapped to the terminal's width.
Types ¶
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package logs provides the logs tail command.
|
Package logs provides the logs tail command. |
|
Package plugin provides plugin management commands.
|
Package plugin provides plugin management commands. |
|
Package resource provides auto-generated API resource commands.
|
Package resource provides auto-generated API resource commands. |
|
Package samples provides CLI commands for managing Stripe samples.
|
Package samples provides CLI commands for managing Stripe samples. |