Skip to content
Merged

1.6.0 #177

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
a4e08ee
updating linux packages installation instructions
digitalghost-dev Aug 14, 2025
3b52c63
first edition of --defense flag (#168)
digitalghost-dev Aug 15, 2025
27b49a4
updating version numbers
digitalghost-dev Aug 15, 2025
4541264
updating formatting
digitalghost-dev Aug 15, 2025
2146546
updating steps, updating versions numbers
digitalghost-dev Aug 15, 2025
7fe1d3e
adding --defense flag test (#168)
digitalghost-dev Aug 15, 2025
cc49e96
adding dbt-core, dbt-postgres
digitalghost-dev Aug 17, 2025
685813a
adding -d | --defense flag call (#168)
digitalghost-dev Aug 17, 2025
f9ee3af
updating test data
digitalghost-dev Aug 17, 2025
358482b
adding test for -d | --defense flag
digitalghost-dev Aug 17, 2025
02ddca1
sorting types alphabetically by name (#168)
digitalghost-dev Aug 17, 2025
fcdc956
initial page commit
digitalghost-dev Aug 17, 2025
cbe465e
updating paths to ignore
digitalghost-dev Aug 17, 2025
741c9ea
adding --defense flag call (#168)
digitalghost-dev Aug 17, 2025
f216f4a
updating description
digitalghost-dev Aug 17, 2025
2680651
using bookworm instead of trixie
digitalghost-dev Aug 18, 2025
2e25dd0
reducing times on various commands
digitalghost-dev Aug 18, 2025
3f9b25f
updating demo gif link
digitalghost-dev Aug 18, 2025
1c59a43
initial commit
digitalghost-dev Aug 18, 2025
9920a73
adding defense flag reference (#168)
digitalghost-dev Aug 18, 2025
f9d25a5
updating markdown
digitalghost-dev Aug 18, 2025
249dd8a
updating linux installation instructions and version numbers
digitalghost-dev Aug 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 20 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ on:
- main

env:
VERSION_NUMBER: 'v1.5.2'
VERSION_NUMBER: 'v1.6.0'
DOCKERHUB_REGISTRY_NAME: 'digitalghostdev/poke-cli'
AWS_REGION: 'us-west-2'

Expand Down Expand Up @@ -147,7 +147,7 @@ jobs:
working-directory: packages
run: |
cloudsmith push deb \
digitalghost-dev/poke-cli/debian/trixie \
digitalghost-dev/poke-cli/debian/bookworm \
poke-cli_${{ env.VERSION_NUMBER }}_linux_${{ matrix.arch }}.deb

upload-rpm-packages:
Expand Down Expand Up @@ -226,27 +226,11 @@ jobs:
fi
echo "✅ All packages uploaded successfully! ✅"

lint-cli-dockerfile:
build-docs-docker-image:
runs-on: ubuntu-22.04
needs: [ gosec ]
if: needs.gosec.result == 'success'

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Lint Dockerfile
uses: 'hadolint/[email protected]'
with:
dockerfile: Dockerfile
failure-threshold: 'error'


build-docs-docker-image:
runs-on: ubuntu-22.04
needs: [ lint-cli-dockerfile ]
if: needs.lint-cli-dockerfile.result == 'success'

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -310,11 +294,26 @@ jobs:
docker tag docs:latest ${{ secrets.AWS_DOCS_ECR_NAME }}:latest
docker push ${{ secrets.AWS_DOCS_ECR_NAME }}:latest

build-cli-docker-image:
lint-cli-dockerfile:
runs-on: ubuntu-22.04
needs: [gosec]
needs: [ gosec ]
if: needs.gosec.result == 'success'

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Lint Dockerfile
uses: 'hadolint/[email protected]'
with:
dockerfile: Dockerfile
failure-threshold: 'error'

build-cli-docker-image:
runs-on: ubuntu-22.04
needs: [ lint-cli-dockerfile ]
if: needs.lint-cli-dockerfile.result == 'success'

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
15 changes: 8 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,25 +35,26 @@ card_data/.venv
__pycache__/

# Terraform
### Ignore CLI configuration files
.terraformrc
terraform.rc

**/*.tfvars
**/*.tfvars.json

### Terraform state files
**/*.tfstate
**/*.tfstate.*

### Terraform crash log files
crash.log
crash.*.log

### .terraform
# dbt
card_data/logs/
dbt_packages/
logs/

target/
dbt_packages/

card_data/infrastructure/supabase/access-token
/card_data/infrastructure/supabase/access-token
**/.terraform/

card_data/.tmp*/**

2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ builds:
- windows
- darwin
ldflags:
- -s -w -X main.version=v1.5.2
- -s -w -X main.version=v1.6.0

archives:
- formats: [ 'zip' ]
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN go mod download

COPY . .

RUN go build -ldflags "-X main.version=v1.5.2" -o poke-cli .
RUN go build -ldflags "-X main.version=v1.6.0" -o poke-cli .

# build 2
FROM --platform=$BUILDPLATFORM alpine:3.22
Expand Down
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<img height="250" width="350" src="pokemon.svg" alt="pokemon-logo"/>
<h1>Pokémon CLI</h1>
<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">
<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">
<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">
<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">
</div>
<div align="center">
Expand All @@ -24,7 +24,7 @@ View future plans in the [Roadmap](#roadmap) section.

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

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

| Package Type | Distributions | Repository Setup | Installation Command |
|--------------|-----------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------|
| `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` |
| `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` |
| `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` |
1. Run the **Repository Setup** script first for the correct Linux distribution.
2. Run the corresponding **Installation Command** afterward.

| Package Type | Distributions | Repository Setup | Installation Command |
|:------------:|-----------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------|
| `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` |
| `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` |
| `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` |

### Docker Image

Expand All @@ -83,11 +86,11 @@ Cloudsmith is a fully cloud-based service that lets you easily create, store, an
3. Choose how to interact with the container:
* Run a single command and exit:
```bash
docker run --rm -it digitalghostdev/poke-cli:v1.5.2 <command> [subcommand] flag]
docker run --rm -it digitalghostdev/poke-cli:v1.6.0 <command> [subcommand] flag]
```
* Enter the container and use its shell:
```bash
docker run --rm -it --name poke-cli --entrypoint /bin/sh digitalghostdev/poke-cli:v1.5.2 -c "cd /app && exec sh"
docker run --rm -it --name poke-cli --entrypoint /bin/sh digitalghostdev/poke-cli:v1.6.0 -c "cd /app && exec sh"
# placed into the /app directory, run the program with './poke-cli'
# example: ./poke-cli ability swift-swim
```
Expand Down Expand Up @@ -181,7 +184,7 @@ Below is a list of the planned/completed commands and flags:
- [x] `natures`: get data about natures.
- [x] `pokemon`: get data about a Pokémon.
- [x] `-a | --abilities`: display the Pokémon's abilities.
- [ ] `-d | --defense`: display the Pokémon's type defences.
- [x] `-d | --defense`: display the Pokémon's type defences.
- [x] `-i | --image`: display a pixel image of the Pokémon.
- [x] `-s | --stats`: display the Pokémon's base stats.
- [x] `-m | --moves`: display learnable moves.
Expand Down
2 changes: 2 additions & 0 deletions card_data/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies = [
"dagster-dg-cli>=1.11.3",
"dagster-postgres>=0.27.3",
"dagster-webserver>=1.11.3",
"dbt-core>=1.10.8",
"dbt-postgres>=1.9.0",
"pandas>=2.3.1",
"polars>=1.31.0",
"psycopg2-binary>=2.9.10",
Expand Down
Loading