Skip to content

[Hackathon] Add shell completion (bash/zsh/fish) #74

Closed

Description

@Andy00L

Discord Username / User ID

interferon0

What does this improvement do?

Add testsprite completion [bash|zsh|fish] to print a shell completion script. Command names, subcommands, and global flags are derived from the assembled Commander program at call time, so the script can never drift from the real command tree. The shell is auto-detected from $SHELL when the argument is omitted.

Details / implementation notes

New command in src/commands/completion.ts (pure renderCompletion per shell + auto-detect). 11 unit tests. Registered in src/index.ts with a spec builder that walks the program; root --help snapshot updated. No new dependencies. Full gate green. PR to follow once assigned.

Confirmations

  • I have searched existing issues and this is not a duplicate.
  • I have provided my Discord identity above for reward coordination.

Activity

  1. added
    needs-triage
    hackathon
    on Jul 1, 2026
  2. zeshi-du commented on Jul 3, 2026

    @zeshi-du
    Contributor

    Triage: accepted — deriving completions from the assembled Commander tree (no drift) is the right design. Comment /assign to claim.

  3. removed
    needs-triage
    on Jul 3, 2026
  4. Andy00L commented on Jul 6, 2026

    @Andy00L
    ContributorAuthor

    /assign

  5. testsprite-hob commented on Jul 6, 2026

    @testsprite-hob

    Assigned to @Andy00L. Thanks for taking this on. ⚠️ You're now over the soft 3-issue limit (7/3). Consider finishing one before taking more.

    Your open assigned issues (7/3):

  6. added
    in-progress
    on Jul 6, 2026
  7. added a commit that references this issue on Jul 6, 2026
    df8b676
  8. added a commit that references this issue on Jul 18, 2026
    759a1c7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

hackathonin-progress

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions