You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The project already has extensive packaging infrastructure (Homebrew, APT, RPM, APK, AUR, Nix, Chocolatey, Winget, Scoop). Shell completions are expected in modern CLI tools and significantly improve UX for discoverability and speed. The argument parser in args.zig (644 lines) already has an exhaustive flag list with descriptions — this metadata can be reused.
Acceptance Criteria
--completions <shell> flag accepts: bash, zsh, fish
Generated scripts include all flags with descriptions
Generated scripts include output format values for -O (table, json, csv, tsv, vertical, markdown, html, sql)
Generated scripts include input format values for -I (csv, tsv, json, ndjson, xml, yaml)
Scripts are self-contained (no external dependencies)
Description
Add a
--completions <shell>flag that generates shell completion scripts for bash, zsh, and fish.Motivation
The project already has extensive packaging infrastructure (Homebrew, APT, RPM, APK, AUR, Nix, Chocolatey, Winget, Scoop). Shell completions are expected in modern CLI tools and significantly improve UX for discoverability and speed. The argument parser in
args.zig(644 lines) already has an exhaustive flag list with descriptions — this metadata can be reused.Acceptance Criteria
--completions <shell>flag accepts:bash,zsh,fish-O(table,json,csv,tsv,vertical,markdown,html,sql)-I(csv,tsv,json,ndjson,xml,yaml)Implementation Notes
--helpoutput (args.zigline 184-260) already has well-formatted descriptions