2025-09-28 20:15:55 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"fmt"
|
2025-10-04 17:29:20 +00:00
|
|
|
"k3gtpi.jumpingcrab.com/go-learning/pokedexcli/internal/pokecache"
|
2025-09-28 20:15:55 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
2025-10-04 17:29:20 +00:00
|
|
|
func commandHelp(p *PokedexConfig, c *pokecache.Cache) error {
|
2025-09-28 20:15:55 +00:00
|
|
|
fmt.Print("Pokedex CLI - available commands:\n\n")
|
|
|
|
|
for _, v := range getCommands() {
|
|
|
|
|
fmt.Printf("%s %s\n", v.name, v.description)
|
|
|
|
|
}
|
|
|
|
|
fmt.Println()
|
|
|
|
|
return nil
|
|
|
|
|
}
|