Skip to content

Commit b94f6e1

Browse files
adding 'speed' command references (#166)
1 parent 90416cd commit b94f6e1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cli.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"github.com/digitalghost-dev/poke-cli/cmd/natures"
1010
"github.com/digitalghost-dev/poke-cli/cmd/pokemon"
1111
"github.com/digitalghost-dev/poke-cli/cmd/search"
12+
"github.com/digitalghost-dev/poke-cli/cmd/speed"
1213
"github.com/digitalghost-dev/poke-cli/cmd/types"
1314
"github.com/digitalghost-dev/poke-cli/cmd/utils"
1415
"github.com/digitalghost-dev/poke-cli/flags"
@@ -72,6 +73,7 @@ func runCLI(args []string) int {
7273
fmt.Sprintf("\n\t%-15s %s", "natures", "Get details about all natures"),
7374
fmt.Sprintf("\n\t%-15s %s", "pokemon", "Get details about a Pokémon"),
7475
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"),
7577
fmt.Sprintf("\n\t%-15s %s", "types", "Get details about a typing"),
7678
"\n\n", styling.StyleItalic.Render("hint: when calling a resource with a space, use a hyphen"),
7779
"\n", styling.StyleItalic.Render("example: poke-cli ability strong-jaw"),
@@ -105,6 +107,7 @@ func runCLI(args []string) int {
105107
"move": utils.HandleCommandOutput(move.MoveCommand),
106108
"natures": utils.HandleCommandOutput(natures.NaturesCommand),
107109
"pokemon": utils.HandleCommandOutput(pokemon.PokemonCommand),
110+
"speed": utils.HandleCommandOutput(speed.SpeedCommand),
108111
"types": utils.HandleCommandOutput(types.TypesCommand),
109112
"search": func() int {
110113
search.SearchCommand()
@@ -141,6 +144,7 @@ func runCLI(args []string) int {
141144
fmt.Sprintf("\n\t%-15s %s", "natures", "Get details about all natures"),
142145
fmt.Sprintf("\n\t%-15s %s", "pokemon", "Get details about a Pokémon"),
143146
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"),
144148
fmt.Sprintf("\n\t%-15s %s", "types", "Get details about a typing"),
145149
fmt.Sprintf("\n\nAlso run %s for more info!", styling.StyleBold.Render("poke-cli -h")),
146150
)

0 commit comments

Comments
 (0)