Skip to content

Commit e4f477c

Browse files
updating test data
1 parent 0bce206 commit e4f477c

13 files changed

Lines changed: 23 additions & 14 deletions

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ on:
3030
- main
3131

3232
env:
33-
VERSION_NUMBER: 'v1.7.1'
33+
VERSION_NUMBER: 'v1.7.2'
3434
DOCKERHUB_REGISTRY_NAME: 'digitalghostdev/poke-cli'
3535
AWS_REGION: 'us-west-2'
3636

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ builds:
1414
- windows
1515
- darwin
1616
ldflags:
17-
- -s -w -X main.version=v1.7.1
17+
- -s -w -X main.version=v1.7.2
1818

1919
archives:
2020
- formats: [ 'zip' ]

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN go mod download
88

99
COPY . .
1010

11-
RUN go build -ldflags "-X main.version=v1.7.1" -o poke-cli .
11+
RUN go build -ldflags "-X main.version=v1.7.2" -o poke-cli .
1212

1313
# build 2
1414
FROM --platform=$BUILDPLATFORM alpine:3.22

cmd/pokemon/pokemon.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,17 @@ func PokemonCommand() (string, error) {
102102
var eggGroupSlice []string
103103

104104
for _, entry := range pokemonSpeciesStruct.EggGroups {
105-
capitalizedEggGroup := cases.Title(language.English).String(entry.Name)
106-
eggGroupSlice = append(eggGroupSlice, capitalizedEggGroup)
105+
modernEggGroupNames := map[string]string{
106+
"indeterminate": "Amorphous",
107+
}
108+
109+
if name, exists := modernEggGroupNames[entry.Name]; exists {
110+
eggGroupSlice = append(eggGroupSlice, name)
111+
} else {
112+
capitalizedEggGroup := cases.Title(language.English).String(entry.Name)
113+
eggGroupSlice = append(eggGroupSlice, capitalizedEggGroup)
114+
}
115+
107116
}
108117

109118
sort.Strings(eggGroupSlice)

nfpm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: "poke-cli"
22
arch: "arm64"
33
platform: "linux"
4-
version: "v1.7.1"
4+
version: "v1.7.2"
55
section: "default"
66
version_schema: semver
77
maintainer: "Christian S"

testdata/main_latest_flag.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
22
┃ ┃
33
┃ Latest available version: ┃
4-
┃ • v1.7.0
4+
┃ • v1.7.1
55
┃ ┃
66
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

testdata/pokemon_defense.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ look forward to being launched out at Mach speeds.
99
• Weight: 50.0kg (110.2 lbs)
1010
• Height: 3.0m (9′10″)
1111
• Evolves from: Drakloak
12-
• Egg Group(s): Dragon, Indeterminate
12+
• Egg Group(s): Amorphous, Dragon
1313
─────────────
1414
Type Defenses
1515
Immune: Fighting, Normal

testdata/pokemon_defense_ability_immunities.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ escapes.
99
• Weight: 29.9kg (65.9 lbs)
1010
• Height: 0.9m (2′11″)
1111
• Evolves from: Shellos
12-
• Egg Group(s): Indeterminate, Water1
12+
• Egg Group(s): Amorphous, Water1
1313
─────────────
1414
Type Defenses
1515
Immune: Electric

testdata/pokemon_image.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Skeledirge’s head gained a soul.
1010
• Weight: 326.5kg (719.8 lbs)
1111
• Height: 1.6m (5′03″)
1212
• Evolves from: Crocalor
13-
• Egg Group(s): Ground
13+
• Egg Group(s): Field
1414
─────
1515
Image
1616
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

testdata/pokemon_image_flag_non-valid_size.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ in the rescues of drowning people.
99
• Weight: 33.5kg (73.9 lbs)
1010
• Height: 1.1m (3′07″)
1111
• Evolves from: Buizel
12-
• Egg Group(s): Ground, Water1
12+
• Egg Group(s): Field, Water1
1313
─────
1414
Image
1515
╭───────────────────────────╮

0 commit comments

Comments
 (0)