Repository navigation
feat: add shell completions for bash, zsh and fish - #10
Merged
1 commit merged intoOct 4, 2026
Merged
1 commit merged into
1 commit merged into
Conversation
Static completion scripts under completions/ complete the flag names; -timeout also suggests 30s, 2m and 5m. Everything after the flags is the request, so no argument completion is offered there. The scripts are wired into the release archives (they land in completions/ inside the tarball; verified with make snapshot), the README gains a Shell completions section with per-shell install steps, and the CHANGELOG records the addition under Unreleased.
6 of 10 tasks
Owner
|
Thanks @Ashutosh-Panda2004, this is in! It landed through #13, which merges your commit unchanged and resolves the conflict with the man page from #11. One small fix went on top: bash and zsh no longer offer flags once the request has started, since aiterm rejects flags typed after the request. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3
Static completion scripts for the three shells in
completions/. They complete the flag names (-key,-url,-model,-timeout,-version,-h);-timeoutalso suggests30s,2mand5m. Everything after the flags is the request, so no argument completion is offered there.The scripts are wired into
archives.filesin.goreleaser.yamland land in acompletions/directory inside the tarball — verified withmake snapshot, which shows all three alongside the binary. The README gains a Shell completions section with install steps per shell, and the CHANGELOG has an entry under Unreleased.Each script was exercised in its shell: bash completes
-tto-timeoutand the durations after-timeout; zsh registers_aitermand parses; fish completes the flags and durations.make testandmake lintpass, andgo mod tidyleaves go.mod/go.sum unchanged.