@@ -66,9 +66,10 @@ func runCLI(args []string) int {
6666 fmt .Sprintf ("\n \t %-15s %s" , "-h, --help" , "Shows the help menu" ),
6767 fmt .Sprintf ("\n \t %-15s %s" , "-l, --latest" , "Prints the latest version available" ),
6868 fmt .Sprintf ("\n \t %-15s %s" , "-v, --version" , "Prints the current version" ),
69- "\n \n " , styleBold .Render ("AVAILABLE COMMANDS:" ),
70- fmt .Sprintf ("\n \t %-15s %s" , "pokemon" , "Get details of a specific Pokémon" ),
71- fmt .Sprintf ("\n \t %-15s %s" , "types" , "Get details of a specific typing" ),
69+ "\n \n " , styleBold .Render ("COMMANDS:" ),
70+ fmt .Sprintf ("\n \t %-15s %s" , "natures" , "Get details about Pokémon natures" ),
71+ fmt .Sprintf ("\n \t %-15s %s" , "pokemon" , "Get details about a specific Pokémon" ),
72+ fmt .Sprintf ("\n \t %-15s %s" , "types" , "Get details about a specific typing" ),
7273 )
7374 fmt .Println (helpMessage )
7475 }
@@ -91,6 +92,7 @@ func runCLI(args []string) int {
9192
9293 commands := map [string ]func (){
9394 "pokemon" : cmd .PokemonCommand ,
95+ "natures" : cmd .NaturesCommand ,
9496 "types" : cmd .TypesCommand ,
9597 }
9698
@@ -111,10 +113,11 @@ func runCLI(args []string) int {
111113 errMessage := errorBorder .Render (
112114 errorColor .Render ("Error!" ),
113115 fmt .Sprintf ("\n \t %-15s" , fmt .Sprintf ("'%s' is not a valid command.\n " , command )),
114- styleBold .Render ("\n Available Commands:" ),
115- fmt .Sprintf ("\n \t %-15s %s" , "pokemon" , "Get details of a specific Pokémon" ),
116- fmt .Sprintf ("\n \t %-15s %s" , "types" , "Get details of a specific typing\n " ),
117- fmt .Sprintf ("\n Also run %s for more info!" , styleBold .Render ("[poke-cli -h]" )),
116+ styleBold .Render ("\n Commands:" ),
117+ fmt .Sprintf ("\n \t %-15s %s" , "natures" , "Get details about Pokémon natures" ),
118+ fmt .Sprintf ("\n \t %-15s %s" , "pokemon" , "Get details about a specific Pokémon" ),
119+ fmt .Sprintf ("\n \t %-15s %s" , "types" , "Get details about a specific typing" ),
120+ fmt .Sprintf ("\n \n Also run %s for more info!" , styleBold .Render ("poke-cli -h" )),
118121 )
119122 fmt .Printf ("%s\n " , errMessage )
120123 return 1
0 commit comments