Skip to content

Conversation

@majiayu000
Copy link

Summary

This PR fixes #285

Adds shell completion support for Plandex CLI using Cobra's built-in completion generation.

Changes

  • Add completion command that generates shell completion scripts
  • Support for bash, zsh, fish, and powershell shells
  • Include detailed usage instructions in the command help text

Usage

# Bash
source <(plandex completion bash)

# Zsh
plandex completion zsh > "${fpath[1]}/_plandex"

# Fish
plandex completion fish | source

# PowerShell
plandex completion powershell | Out-String | Invoke-Expression

🤖 Generated with Claude Code

Implements shell completion support using Cobra's built-in completion
generation. Users can now generate completion scripts by running:

  plandex completion [bash|zsh|fish|powershell]

The completion scripts provide tab-completion for all plandex commands,
subcommands, and flags.

Fixes plandex-ai#285

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Signed-off-by: majiayu000 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FR] add shell completions

1 participant