commands

package
v0.0.0-...-6038e55 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands map[string]Command

Functions

func CommandCatch

func CommandCatch(cfg *Config) error

func CommandExit

func CommandExit(cfg *Config) error

func CommandExplore

func CommandExplore(cfg *Config) error

func CommandHelp

func CommandHelp(cfg *Config) error

func CommandInspect

func CommandInspect(cfg *Config) error

func CommandMap

func CommandMap(cfg *Config) error

func CommandMapBack

func CommandMapBack(cfg *Config) error

func CommandPokedex

func CommandPokedex(cfg *Config) error

func ExecuteCommand

func ExecuteCommand(cmdName string, cfg *Config, args []string) error

func Initialize

func Initialize()

Types

type Command

type Command struct {
	Exec        CommandFunc
	Description string
}

type CommandFunc

type CommandFunc func(cfg *Config) error

type Config

type Config struct {
	Next          string
	Previous      string
	Args          []string
	CaughtPokemon map[string]pokeapi.Pokemon
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL