Skip to content

feat(cli): shell completion scripts for bash/zsh/fish/powershell (#26)#68

Merged
Siddhant-K-code merged 1 commit into
mainfrom
feat/26-shell-completions
May 2, 2026
Merged

feat(cli): shell completion scripts for bash/zsh/fish/powershell (#26)#68
Siddhant-K-code merged 1 commit into
mainfrom
feat/26-shell-completions

Conversation

@Siddhant-K-code
Copy link
Copy Markdown
Owner

Closes #26

Summary

Adds distill completion [bash|zsh|fish|powershell] using Cobra's built-in completion generators.

Usage

# Bash (one-time)
distill completion bash > /etc/bash_completion.d/distill

# Zsh
distill completion zsh > "${fpath[1]}/_distill"

# Fish
distill completion fish > ~/.config/fish/completions/distill.fish

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

Per-shell installation instructions are included in distill completion --help.

Files

  • cmd/completion.go

Implements issue #26. Adds 'distill completion [shell]' using Cobra's
built-in completion generators. Includes per-shell installation
instructions in the command's long description.

Co-authored-by: Ona <no-reply@ona.com>
@Siddhant-K-code Siddhant-K-code added the enhancement New feature or request label May 2, 2026
@Siddhant-K-code Siddhant-K-code merged commit 50d5a5a into main May 2, 2026
1 of 2 checks passed
@Siddhant-K-code Siddhant-K-code deleted the feat/26-shell-completions branch May 2, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Shell completions (Bash, Zsh, Fish, PowerShell)

1 participant