Skip to content

Releases: digitalghost-dev/poke-cli

v0.9.2

14 Dec 23:20
7957cfe
Compare
Choose a tag to compare

Fixed

  • Fixed various string formatting, specifically with Pokémon names and abilities using a hyphen. (#85)

v0.9.1

09 Dec 05:37
1413337
Compare
Choose a tag to compare

Fixed

  • Fixed error message outputs to use a lipgloss border, specifically when using an empty flag (poke-cli pokemon -s --) and when mistyping a Pokemon's name. (#83)

v0.9.0

09 Dec 03:41
18350ce
Compare
Choose a tag to compare

Added

  • Added a new flag -v | --version to check the current version of the tool. (#78)
  • Added the number of moves belonging to a specified type when using the types command. (#79)

Security

  • Secured against G107 (CWE-88). (#80)

v0.8.0

27 Nov 22:09
2dd8400
Compare
Choose a tag to compare

Added

  • Added a new flag -s | --stats to the pokemon command to view a Pokémon's base stats. (#74)
  • Added a function to print out the header for any flag option under the pokemon command, reducing redundancy. (#75)
  • Added metrics to the pokemon command that includes height and weight. (#76)

v0.7.2

22 Nov 00:03
Compare
Choose a tag to compare

Changed

  • Changed location of getTypeColor() function to cmd/styles.go. (#71)

Removed

  • Removed httpGet variable from connections/connection.go. (#72)

v0.7.1

13 Nov 00:00
Compare
Choose a tag to compare

Added

  • Added a helper method that helps reduce redundancy by passing it into each command's argument validator. (#69)

Changed

  • Changed the help menus for the current commands by simplifying the text and verbiage. (#67)
  • Changed the pokemon and types help menu to include the -h, --help flag. (#65)

Fixed

  • Fixed a bug where misspelling a Pokémon's name would error out but still would run the rest of the program with blank data. (#68)
  • Fixed a bug when using the help flag on either the pokemon or types command; the program defaults to using the mainFlagSet.Usage() menu instead of the help menu for each command. (#64)

v0.7.0

03 Nov 21:24
Compare
Choose a tag to compare

Added

  • Added a damage chart to poke-cli types. It shows a list of the selected type's weaknesses, resistances, immunities, and damage to other types using a BubbleTea list. (#62)

Changed

  • Changed the ApiCallSetup() function in connections/connection.go to return fmt.Errorf() instead of various fmt.Println() and log.Fatalf() uses which made testing the file difficult. Now, testing coverage for the connections package has increased to over 85%.

v0.6.5

29 Oct 18:16
Compare
Choose a tag to compare

Changed

  • Changed cli.go to provide test coverage opportunities and better maintainability. Moved logic out of main() and into a separate runCLI function. (#58)

Fixed

  • Fixed expression always equating to false. (#57)

v0.6.4

26 Oct 22:50
Compare
Choose a tag to compare

Changed

  • Changed output to include color when printing out a type for the poke-cli types command. (#55)

v0.6.3

21 Oct 03:16
Compare
Choose a tag to compare

Changed

  • Changed code in types.go for better organization. (#51)
  • Changed message when using a non-available command. (#52)
    • Previously, only a generic Unknown command error would show when not using an available commanded.
  • Changed location of lipgloss variables to their own file since they are used multiple times throughout the cmd package. (#53)