Skip to content

feat: add shell completions for bash, zsh, fish, and powershell#312

Open
majiayu000 wants to merge 1 commit intoplandex-ai:mainfrom
majiayu000:fix-285-fr-add-shell-completions-1230-2154
Open

feat: add shell completions for bash, zsh, fish, and powershell#312
majiayu000 wants to merge 1 commit intoplandex-ai:mainfrom
majiayu000:fix-285-fr-add-shell-completions-1230-2154

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 <noreply@anthropic.com>
Signed-off-by: majiayu000 <1835304752@qq.com>
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