Skip to content

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

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.

Metadata

Metadata

Assignees

Labels

hackathonCLI hackathon submissionsin-progressAssigned and actively being worked on

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions