Skip to content

Shell completions without adding a dependency #25

Description

@jpbelmo

Mature CLIs ship shell completions (bash/zsh/fish): type redential s<TAB> and get scan submit status. Worth having eventually, but this repo has a hard constraint that makes it a design discussion first: no new dependencies without written justification, and the usual completion libraries are exactly that.

Questions to settle before any code:

  • Can commander's built-in metadata drive a hand-rolled redential completion <shell> generator with zero dependencies? (Print a static script per shell; users source it from their rc file.)
  • Which shells matter enough to maintain? (bash + zsh covers most; fish is a nice-to-have.)
  • Where does it get documented, and does npm install -g have any sanctioned hook for offering setup (given the repo's zero-postinstall rule, likely no; docs-only setup).

Opinions and prior art welcome. This graduates to an implementation issue once the zero-dependency approach is agreed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionOpen design/product question, not yet a concrete taskenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions