Skip to content

Feat/polish completions doctor ci#12

Merged
Tirthraj-Raval merged 3 commits into
mainfrom
feat/polish-completions-doctor-ci
Jul 10, 2026
Merged

Feat/polish completions doctor ci#12
Tirthraj-Raval merged 3 commits into
mainfrom
feat/polish-completions-doctor-ci

Conversation

@Tirthraj-Raval

Copy link
Copy Markdown
Owner

New:

  • cli/internal/cmd/doctor.go: --doctor health check (chafa, fastfetch,
    pokemon-colorscripts, terminal graphics protocol, config, manifest,
    assets on disk, fastfetch config, rc file integration)
  • cli/internal/cmd/list.go: grouped output with counts + year ranges
    for --list-brands ('Ferrari 91 cars 1947-2024'), --list-decades
    (with vintage/modern indicator), --list-categories (sorted by count)
  • .github/workflows/ci.yml: go build+vet, python py_compile,
    shellcheck on all install scripts

Fixed:

  • uninstall.sh loop-start grep now also matches
    'hypercar-installer-disabled' so files where the block was stripped
    manually still get processed for pokemon restoration.
  • uninstall.sh restore regex now handles leading whitespace (was
    breaking when install.sh preserved indentation via \1).

Changed:

  • install.sh asks for pokemon mixing while installation.
    is missing.
  • uninstall.sh removes the completion logic entirely

New:
- cli/internal/cmd/doctor.go: --doctor health check (chafa, fastfetch,
  pokemon-colorscripts, terminal graphics protocol, config, manifest,
  assets on disk, fastfetch config, rc file integration)
- cli/internal/cmd/completions.go: tab completion for --car, --brand,
  --decade, --category, --powertrain, --country, --set-mode. Loads
  manifest lazily via sync.Once. Includes both slugs and alias keys
  as --car completions.
- cli/internal/cmd/list.go: grouped output with counts + year ranges
  for --list-brands ('Ferrari  91 cars  1947-2024'), --list-decades
  (with vintage/modern indicator), --list-categories (sorted by count)
- .github/workflows/ci.yml: go build+vet, python py_compile,
  shellcheck on all install scripts

Fixed:
- uninstall.sh loop-start grep now also matches
  'hypercar-installer-disabled' so files where the block was stripped
  manually still get processed for pokemon restoration.
- uninstall.sh restore regex now handles leading whitespace (was
  breaking when install.sh preserved indentation via \\1).

Changed:
- install.sh drops completion files into XDG dirs for bash/zsh/fish
  after binary install. Non-fatal — installs succeed even if a shell
  is missing.
- uninstall.sh removes the completion files."

IMPORTANT:
- The shell completion scripts still have issues and will be fixed in a follow-up commit.
- Added the pokemon mixing option while installing.
- Removed the shell completion logic from the install script and the completions.go file.
@Tirthraj-Raval
Tirthraj-Raval merged commit 989384a into main Jul 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants