Skip to content

Shell completions for bash/zsh/fish #31

Description

@aakashrajput

Why

No tab-completion for klaatai/klaatcode commands and flags in bash/zsh/fish. Small quality-of-life win every terminal user feels immediately.

What

  • Completion scripts for bash, zsh, and fish covering: top-level commands (chat, run, login, logout, whoami, upgrade, serve, web), their flags, and both binary names
  • A klaatai completions <shell> command that prints the script (the standard pattern), so users can do e.g. klaatai completions zsh > ~/.zfunc/_klaatai
  • Install hint in the README

Static completions are fine for v1 — no need for dynamic session-id completion.

Where to start

  • src/main.tsx — commander already knows the command tree; generate from it if easy, otherwise hand-write the three scripts under a new completions/ dir and have the command print them

Acceptance criteria

  • Works in a fresh bash, zsh, and fish shell (document how you tested)
  • typecheck green

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions