Documentation
¶
Index ¶
- func APIKey(input string) error
- func Account(account string) error
- func CallNonEmpty(validator ArgValidator, value string) error
- func CallNonEmptyArray(validator ArgValidator, values []string) error
- func ExactArgs(num int) cobra.PositionalArgs
- func HTTPMethod(method string) error
- func NoArgs(cmd *cobra.Command, args []string) error
- func RequestSource(source string) error
- func RequestStatus(status string) error
- func StatusCode(code string) error
- func StatusCodeType(code string) error
- type ArgValidator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallNonEmpty ¶ added in v0.4.0
func CallNonEmpty(validator ArgValidator, value string) error
func CallNonEmptyArray ¶ added in v0.4.0
func CallNonEmptyArray(validator ArgValidator, values []string) error
Call allows any validator to be called on a specified string array argument If the arg is empty, then the validator is not called.
func ExactArgs ¶
func ExactArgs(num int) cobra.PositionalArgs
ExactArgs is a validator for commands to print an error when the number provided is different than the arguments passed in
func HTTPMethod ¶ added in v0.4.0
func RequestSource ¶ added in v0.4.0
func RequestStatus ¶ added in v0.4.0
func StatusCode ¶ added in v0.4.0
StatusCode validates that a provided status code is within the range of those used in the Stripe API
func StatusCodeType ¶ added in v0.4.0
StatusCodeType validates that a provided status code type is one of those used in the Stripe API
Types ¶
type ArgValidator ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.