Skip to content

Commit a4d0cd3

Browse files
Merge pull request #184 from digitalghost-dev/1.6.2
1.6.2
2 parents df28b19 + b2ce352 commit a4d0cd3

File tree

16 files changed

+208
-27
lines changed

16 files changed

+208
-27
lines changed

.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.6.1'
33+
VERSION_NUMBER: 'v1.6.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.6.1
17+
- -s -w -X main.version=v1.6.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.6.1" -o poke-cli .
11+
RUN go build -ldflags "-X main.version=v1.6.2" -o poke-cli .
1212

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

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<img height="250" width="350" src="pokemon.svg" alt="pokemon-logo"/>
33
<h1>Pokémon CLI</h1>
44
<img src="https://img.shields.io/github/v/release/digitalghost-dev/poke-cli?style=flat-square&logo=git&logoColor=FFCC00&label=Release%20Version&labelColor=EEE&color=FFCC00" alt="version-label">
5-
<img src="https://img.shields.io/docker/image-size/digitalghostdev/poke-cli/v1.6.1?arch=arm64&style=flat-square&logo=docker&logoColor=FFCC00&labelColor=EEE&color=FFCC00" alt="docker-image-size">
5+
<img src="https://img.shields.io/docker/image-size/digitalghostdev/poke-cli/v1.6.2?arch=arm64&style=flat-square&logo=docker&logoColor=FFCC00&labelColor=EEE&color=FFCC00" alt="docker-image-size">
66
<img src="https://img.shields.io/github/actions/workflow/status/digitalghost-dev/poke-cli/ci.yml?branch=main&style=flat-square&logo=github&logoColor=FFCC00&label=CI&labelColor=EEE&color=FFCC00" alt="ci-status-badge">
77
</div>
88
<div align="center">
@@ -49,17 +49,17 @@ View future plans in the [Roadmap](#roadmap) section.
4949

5050
### Scoop
5151
1. Add the bucket:
52-
```powershell
52+
```bash
5353
scoop bucket add digitalghost https://github.com/digitalghost-dev/scoop-bucket.git
5454
```
5555

5656
2. Install poke-cli:
57-
```powershell
57+
```bash
5858
scoop install poke-cli
5959
```
6060

6161
3. Verify installation:
62-
```powershell
62+
```bash
6363
poke-cli -v
6464
```
6565

@@ -91,11 +91,11 @@ Cloudsmith is a fully cloud-based service that lets you easily create, store, an
9191
3. Choose how to interact with the container:
9292
* Run a single command and exit:
9393
```bash
94-
docker run --rm -it digitalghostdev/poke-cli:v1.6.1 <command> [subcommand] flag]
94+
docker run --rm -it digitalghostdev/poke-cli:v1.6.2 <command> [subcommand] flag]
9595
```
9696
* Enter the container and use its shell:
9797
```bash
98-
docker run --rm -it --name poke-cli --entrypoint /bin/sh digitalghostdev/poke-cli:v1.6.1 -c "cd /app && exec sh"
98+
docker run --rm -it --name poke-cli --entrypoint /bin/sh digitalghostdev/poke-cli:v1.6.2 -c "cd /app && exec sh"
9999
# placed into the /app directory, run the program with './poke-cli'
100100
# example: ./poke-cli ability swift-swim
101101
```

card_data/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ requires-python = ">=3.12"
77
dependencies = [
88
"aws-secretsmanager-caching>=1.1.3",
99
"dagster>=1.11.3",
10+
"dagster-dbt>=0.27.3",
1011
"dagster-dg-cli>=1.11.3",
1112
"dagster-postgres>=0.27.3",
1213
"dagster-webserver>=1.11.3",
@@ -27,6 +28,7 @@ dependencies = [
2728
dev = [
2829
"dagster-webserver",
2930
"dagster-dg-cli",
31+
"dagster-dbt>=0.27.3",
3032
"dagster-postgres>=0.27.3",
3133
]
3234

card_data/uv.lock

Lines changed: 114 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/pokemon/pokemon.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func PokemonCommand() (string, error) {
7676
return output.String(), err
7777
}
7878

79-
pokemonSpeciesStruct, err := connections.PokemonSpeciesApiCall("pokemon-species", pokemonName, connections.APIURL)
79+
pokemonSpeciesStruct, err := connections.PokemonSpeciesApiCall("pokemon-species", pokemonStruct.Species.Name, connections.APIURL)
8080
if err != nil {
8181
output.WriteString(err.Error())
8282
return output.String(), err

cmd/pokemon/pokemon_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,16 @@ func TestPokemonCommand(t *testing.T) {
8282
args: []string{"pokemon", "toxicroak", "--stats"},
8383
expectedOutput: utils.LoadGolden(t, "pokemon_stats.golden"),
8484
},
85+
{
86+
name: "Pokemon regional form",
87+
args: []string{"pokemon", "exeggutor-alola", "--stats"},
88+
expectedOutput: utils.LoadGolden(t, "pokemon_regional_form.golden"),
89+
},
90+
{
91+
name: "Pokemon regional form 2",
92+
args: []string{"pokemon", "slowking-galar"},
93+
expectedOutput: utils.LoadGolden(t, "pokemon_regional_form_2.golden"),
94+
},
8595
}
8696

8797
for _, tt := range tests {

connections/connection.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"io"
99
"net/http"
1010
"net/url"
11+
"time"
1112

1213
"github.com/digitalghost-dev/poke-cli/structs"
1314
"github.com/digitalghost-dev/poke-cli/styling"
@@ -31,7 +32,11 @@ func ApiCallSetup(rawURL string, target interface{}, skipHTTPSCheck bool) error
3132
return errors.New("only HTTPS URLs are allowed for security reasons")
3233
}
3334

34-
res, err := http.Get(parsedURL.String())
35+
client := http.Client{
36+
Timeout: time.Second * 30,
37+
}
38+
39+
res, err := client.Get(parsedURL.String())
3540
if err != nil {
3641
return fmt.Errorf("error making GET request: %w", err)
3742
}

docs/installation.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
There are a variety of ways to install the tool and support for different operating systems.
33

44
* [Homebrew](#homebrew)
5-
* [Winget](#winget)
5+
* [Scoop](#scoop)
66
* [Linux Packages](#linux-packages)
77
* [Docker Image](#docker-image)
88
* [Binary](#binary)
@@ -19,14 +19,19 @@ There are a variety of ways to install the tool and support for different operat
1919
poke-cli -v
2020
```
2121

22-
### Winget
23-
1. Install the package:
24-
```powershell
25-
winget install poke-cli
22+
### Scoop
23+
1. Add the bucket:
24+
```bash
25+
scoop bucket add digitalghost https://github.com/digitalghost-dev/scoop-bucket.git
2626
```
2727

28-
2. Verify install:
29-
```console
28+
2. Install poke-cli:
29+
```bash
30+
scoop install poke-cli
31+
```
32+
33+
3. Verify installation:
34+
```bash
3035
poke-cli -v
3136
```
3237

0 commit comments

Comments
 (0)