|
9 | 9 | "github.com/digitalghost-dev/poke-cli/cmd/natures" |
10 | 10 | "github.com/digitalghost-dev/poke-cli/cmd/pokemon" |
11 | 11 | "github.com/digitalghost-dev/poke-cli/cmd/search" |
| 12 | + "github.com/digitalghost-dev/poke-cli/cmd/speed" |
12 | 13 | "github.com/digitalghost-dev/poke-cli/cmd/types" |
13 | 14 | "github.com/digitalghost-dev/poke-cli/cmd/utils" |
14 | 15 | "github.com/digitalghost-dev/poke-cli/flags" |
@@ -72,6 +73,7 @@ func runCLI(args []string) int { |
72 | 73 | fmt.Sprintf("\n\t%-15s %s", "natures", "Get details about all natures"), |
73 | 74 | fmt.Sprintf("\n\t%-15s %s", "pokemon", "Get details about a Pokémon"), |
74 | 75 | fmt.Sprintf("\n\t%-15s %s", "search", "Search for a resource"), |
| 76 | + fmt.Sprintf("\n\t%-15s %s", "speed", "Calculate the speed of a Pokémon in battle"), |
75 | 77 | fmt.Sprintf("\n\t%-15s %s", "types", "Get details about a typing"), |
76 | 78 | "\n\n", styling.StyleItalic.Render("hint: when calling a resource with a space, use a hyphen"), |
77 | 79 | "\n", styling.StyleItalic.Render("example: poke-cli ability strong-jaw"), |
@@ -105,6 +107,7 @@ func runCLI(args []string) int { |
105 | 107 | "move": utils.HandleCommandOutput(move.MoveCommand), |
106 | 108 | "natures": utils.HandleCommandOutput(natures.NaturesCommand), |
107 | 109 | "pokemon": utils.HandleCommandOutput(pokemon.PokemonCommand), |
| 110 | + "speed": utils.HandleCommandOutput(speed.SpeedCommand), |
108 | 111 | "types": utils.HandleCommandOutput(types.TypesCommand), |
109 | 112 | "search": func() int { |
110 | 113 | search.SearchCommand() |
@@ -141,6 +144,7 @@ func runCLI(args []string) int { |
141 | 144 | fmt.Sprintf("\n\t%-15s %s", "natures", "Get details about all natures"), |
142 | 145 | fmt.Sprintf("\n\t%-15s %s", "pokemon", "Get details about a Pokémon"), |
143 | 146 | fmt.Sprintf("\n\t%-15s %s", "search", "Search for a resource"), |
| 147 | + fmt.Sprintf("\n\t%-15s %s", "speed", "Calculate the speed of a Pokémon in battle"), |
144 | 148 | fmt.Sprintf("\n\t%-15s %s", "types", "Get details about a typing"), |
145 | 149 | fmt.Sprintf("\n\nAlso run %s for more info!", styling.StyleBold.Render("poke-cli -h")), |
146 | 150 | ) |
|
0 commit comments