utils

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCommandOutput added in v1.2.4

func HandleCommandOutput(fn func() (string, error)) func() int

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 LoadGolden

func LoadGolden(t *testing.T, filename string) string

func ValidateAbilityArgs

func ValidateAbilityArgs(args []string) error

ValidateAbilityArgs validates the command line arguments

func ValidateItemArgs added in v1.4.0

func ValidateItemArgs(args []string) error

ValidateItemArgs validates the command line arguments

func ValidateMoveArgs

func ValidateMoveArgs(args []string) error

ValidateMoveArgs validates the command line arguments

func ValidateNaturesArgs

func ValidateNaturesArgs(args []string) error

ValidateNaturesArgs validates the command line arguments

func ValidatePokemonArgs

func ValidatePokemonArgs(args []string) error

ValidatePokemonArgs validates the command line arguments

func ValidateSearchArgs

func ValidateSearchArgs(args []string) error

ValidateSearchArgs validates the command line arguments

func ValidateSpeedArgs added in v1.5.0

func ValidateSpeedArgs(args []string) error

ValidateSpeedArgs validates the command line arguments

func ValidateTypesArgs

func ValidateTypesArgs(args []string) error

ValidateTypesArgs validates the command line arguments

Types

This section is empty.

Jump to

Keyboard shortcuts

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