Skip to content

Generate shell completion scripts (eko completion) #101

Description

@kavix

🎯 Goal

Add shell completion command support (eko completion [bash|zsh|fish|powershell]) so users can enjoy TAB completion for subcommands and flags.

💡 Expected Usage

# Generate completion script for Zsh
eko completion zsh > ~/.zsh/completion/_eko

🛠️ Implementation Steps

  1. Create cmd/completion.go.
  2. Utilize Cobra's built-in GenBashCompletion, GenZshCompletion, GenFishCompletion, and GenPowerShellCompletion methods.
  3. Document shell installation instructions in the command Long description.
  4. Add unit test in cmd/commands_test.go.

📖 See full details in GOOD_FIRST_ISSUES.md — Issue #7
🌟 Great for first-time contributors! Read CONTRIBUTING.md to get started.

Activity

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

Metadata

Metadata

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions