pokedex_cli/command_help.go

15 lines
255 B
Go
Raw Normal View History

2025-09-28 20:15:55 +00:00
package main
import (
"fmt"
)
func commandHelp(p *PokedexConfig, a *string) 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)
2025-09-28 20:15:55 +00:00
}
fmt.Println()
return nil
}