Skip to content

Commit 999f800

Browse files
Merge pull request #177 from digitalghost-dev/1.6.0
1.6.0
2 parents b01b60f + 249dd8a commit 999f800

23 files changed

+888
-202
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ on:
3030
- main
3131

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

@@ -147,7 +147,7 @@ jobs:
147147
working-directory: packages
148148
run: |
149149
cloudsmith push deb \
150-
digitalghost-dev/poke-cli/debian/trixie \
150+
digitalghost-dev/poke-cli/debian/bookworm \
151151
poke-cli_${{ env.VERSION_NUMBER }}_linux_${{ matrix.arch }}.deb
152152
153153
upload-rpm-packages:
@@ -226,27 +226,11 @@ jobs:
226226
fi
227227
echo "✅ All packages uploaded successfully! ✅"
228228
229-
lint-cli-dockerfile:
229+
build-docs-docker-image:
230230
runs-on: ubuntu-22.04
231231
needs: [ gosec ]
232232
if: needs.gosec.result == 'success'
233233

234-
steps:
235-
- name: Checkout
236-
uses: actions/checkout@v4
237-
238-
- name: Lint Dockerfile
239-
uses: 'hadolint/[email protected]'
240-
with:
241-
dockerfile: Dockerfile
242-
failure-threshold: 'error'
243-
244-
245-
build-docs-docker-image:
246-
runs-on: ubuntu-22.04
247-
needs: [ lint-cli-dockerfile ]
248-
if: needs.lint-cli-dockerfile.result == 'success'
249-
250234
steps:
251235
- name: Checkout
252236
uses: actions/checkout@v4
@@ -310,11 +294,26 @@ jobs:
310294
docker tag docs:latest ${{ secrets.AWS_DOCS_ECR_NAME }}:latest
311295
docker push ${{ secrets.AWS_DOCS_ECR_NAME }}:latest
312296
313-
build-cli-docker-image:
297+
lint-cli-dockerfile:
314298
runs-on: ubuntu-22.04
315-
needs: [gosec]
299+
needs: [ gosec ]
316300
if: needs.gosec.result == 'success'
317301

302+
steps:
303+
- name: Checkout
304+
uses: actions/checkout@v4
305+
306+
- name: Lint Dockerfile
307+
uses: 'hadolint/[email protected]'
308+
with:
309+
dockerfile: Dockerfile
310+
failure-threshold: 'error'
311+
312+
build-cli-docker-image:
313+
runs-on: ubuntu-22.04
314+
needs: [ lint-cli-dockerfile ]
315+
if: needs.lint-cli-dockerfile.result == 'success'
316+
318317
steps:
319318
- name: Checkout
320319
uses: actions/checkout@v4

.gitignore

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,25 +35,26 @@ card_data/.venv
3535
__pycache__/
3636

3737
# Terraform
38-
### Ignore CLI configuration files
3938
.terraformrc
4039
terraform.rc
41-
4240
**/*.tfvars
4341
**/*.tfvars.json
44-
45-
### Terraform state files
4642
**/*.tfstate
4743
**/*.tfstate.*
48-
49-
### Terraform crash log files
5044
crash.log
5145
crash.*.log
5246

53-
### .terraform
47+
# dbt
48+
card_data/logs/
49+
dbt_packages/
50+
logs/
51+
52+
target/
53+
dbt_packages/
5454

5555
card_data/infrastructure/supabase/access-token
5656
/card_data/infrastructure/supabase/access-token
5757
**/.terraform/
5858

5959
card_data/.tmp*/**
60+

.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.5.2
17+
- -s -w -X main.version=v1.6.0
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.5.2" -o poke-cli .
11+
RUN go build -ldflags "-X main.version=v1.6.0" -o poke-cli .
1212

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

README.md

Lines changed: 13 additions & 10 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.5.2?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.0?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">
@@ -24,7 +24,7 @@ View future plans in the [Roadmap](#roadmap) section.
2424

2525
---
2626
## Demo
27-
![demo](https://poke-cli-s3-bucket.s3.us-west-2.amazonaws.com/demo-v1.5.1.gif)
27+
![demo](https://poke-cli-s3-bucket.s3.us-west-2.amazonaws.com/demo-v1.6.0.gif)
2828

2929
---
3030
## Installation
@@ -64,11 +64,14 @@ View future plans in the [Roadmap](#roadmap) section.
6464
This package repository is generously hosted by Cloudsmith.
6565
Cloudsmith is a fully cloud-based service that lets you easily create, store, and share packages in any format, anywhere.
6666

67-
| Package Type | Distributions | Repository Setup | Installation Command |
68-
|--------------|-----------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------|
69-
| `apk` | Alpine | `sudo apk add --no-cache bash && curl -1sLf 'https://dl.cloudsmith.io/basic/digitalghost-dev/poke-cli/setup.alpine.sh' \| sudo -E bash` | `sudo apk add poke-cli=1.5.2 --update-cache` |
70-
| `deb` | Ubuntu, Debian | `curl -1sLf 'https://dl.cloudsmith.io/public/digitalghost-dev/poke-cli/setup.deb.sh' \| sudo -E bash` | `sudo apt-get install poke-cli=1.5.2` |
71-
| `rpm` | Fedora, CentOS, Red Hat, openSUSE | `curl -1sLf 'https://dl.cloudsmith.io/public/digitalghost-dev/poke-cli/setup.rpm.sh' \| sudo -E bash` | `sudo yum install poke-cli-1.5.2-1` |
67+
1. Run the **Repository Setup** script first for the correct Linux distribution.
68+
2. Run the corresponding **Installation Command** afterward.
69+
70+
| Package Type | Distributions | Repository Setup | Installation Command |
71+
|:------------:|-----------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------|
72+
| `apk` | Alpine | `sudo apk add --no-cache bash && curl -1sLf 'https://dl.cloudsmith.io/basic/digitalghost-dev/poke-cli/setup.alpine.sh' \| sudo -E bash` | `sudo apk add poke-cli --update-cache` |
73+
| `deb` | Ubuntu, Debian | `curl -1sLf 'https://dl.cloudsmith.io/public/digitalghost-dev/poke-cli/setup.deb.sh' \| sudo -E bash` | `sudo apt-get install poke-cli` |
74+
| `rpm` | Fedora, CentOS, Red Hat, openSUSE | `curl -1sLf 'https://dl.cloudsmith.io/public/digitalghost-dev/poke-cli/setup.rpm.sh' \| sudo -E bash` | `sudo yum install poke-cli` |
7275

7376
### Docker Image
7477

@@ -83,11 +86,11 @@ Cloudsmith is a fully cloud-based service that lets you easily create, store, an
8386
3. Choose how to interact with the container:
8487
* Run a single command and exit:
8588
```bash
86-
docker run --rm -it digitalghostdev/poke-cli:v1.5.2 <command> [subcommand] flag]
89+
docker run --rm -it digitalghostdev/poke-cli:v1.6.0 <command> [subcommand] flag]
8790
```
8891
* Enter the container and use its shell:
8992
```bash
90-
docker run --rm -it --name poke-cli --entrypoint /bin/sh digitalghostdev/poke-cli:v1.5.2 -c "cd /app && exec sh"
93+
docker run --rm -it --name poke-cli --entrypoint /bin/sh digitalghostdev/poke-cli:v1.6.0 -c "cd /app && exec sh"
9194
# placed into the /app directory, run the program with './poke-cli'
9295
# example: ./poke-cli ability swift-swim
9396
```
@@ -181,7 +184,7 @@ Below is a list of the planned/completed commands and flags:
181184
- [x] `natures`: get data about natures.
182185
- [x] `pokemon`: get data about a Pokémon.
183186
- [x] `-a | --abilities`: display the Pokémon's abilities.
184-
- [ ] `-d | --defense`: display the Pokémon's type defences.
187+
- [x] `-d | --defense`: display the Pokémon's type defences.
185188
- [x] `-i | --image`: display a pixel image of the Pokémon.
186189
- [x] `-s | --stats`: display the Pokémon's base stats.
187190
- [x] `-m | --moves`: display learnable moves.

card_data/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies = [
1010
"dagster-dg-cli>=1.11.3",
1111
"dagster-postgres>=0.27.3",
1212
"dagster-webserver>=1.11.3",
13+
"dbt-core>=1.10.8",
14+
"dbt-postgres>=1.9.0",
1315
"pandas>=2.3.1",
1416
"polars>=1.31.0",
1517
"psycopg2-binary>=2.9.10",

0 commit comments

Comments
 (0)