We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

State

As we add more commands, the Pokedex needs more shared state. We'll keep that state in a config struct and pass it to every command callback.

This gives every command access to the same state and lets us extend the program without changing every callback again later.

Assignment

The program should behave exactly as it did before. This is a refactor, so don't add a new command yet.

Run and submit the CLI tests from the root of the repo.