Documentation
¶
Index ¶
- func HandleCommandOutput(fn func() (string, error)) func() int
- func LoadGolden(t *testing.T, filename string) string
- func ValidateAbilityArgs(args []string) error
- func ValidateMoveArgs(args []string) error
- func ValidateNaturesArgs(args []string) error
- func ValidatePokemonArgs(args []string) error
- func ValidateSearchArgs(args []string) error
- func ValidateTypesArgs(args []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleCommandOutput ¶ added in v1.2.4
HandleCommandOutput takes a function that returns (string, error) and wraps it in a no-argument function that writes the returned string to stdout if there's no error, or to stderr if there is. It returns an exit code: 0 on success, 1 on error.
func ValidateAbilityArgs ¶
ValidateAbilityArgs validates the command line arguments
func ValidateMoveArgs ¶
ValidateMoveArgs validates the command line arguments
func ValidateNaturesArgs ¶
ValidateNaturesArgs validates the command line arguments
func ValidatePokemonArgs ¶
ValidatePokemonArgs validates the command line arguments
func ValidateSearchArgs ¶
ValidateSearchArgs validates the command line arguments
func ValidateTypesArgs ¶
ValidateTypesArgs validates the command line arguments
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.