Skip to content

feat(completion): add one-command completion setup#13

Merged
git-hulk merged 1 commit intomasterfrom
feat/completion-setup
Apr 1, 2026
Merged

feat(completion): add one-command completion setup#13
git-hulk merged 1 commit intomasterfrom
feat/completion-setup

Conversation

@git-hulk
Copy link
Copy Markdown
Owner

@git-hulk git-hulk commented Apr 1, 2026

Summary

  • add clime completion install [shell] for one-command TAB completion setup
  • use Cobra completion backend/candidates (generated scripts) and install shell hooks automatically
  • support shell autodetection from $SHELL (or explicit arg)
  • install behavior:
    • bash/zsh: write script to ~/.clime/completions/clime.<shell> and append profile source hook idempotently
    • fish: write script to ~/.config/fish/completions/clime.fish
    • powershell: return explicit guidance for manual profile setup
  • keep existing clime completion <shell> script generation commands unchanged
  • add tests for shell normalization/detection and idempotent profile hook updates

Testing

  • go test ./...

Closes #12

@git-hulk git-hulk merged commit 0c3bf42 into master Apr 1, 2026
1 check passed
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.

Add one-command completion setup for clime

1 participant