Skip to content

Add dynamic completion for profile and auth refs#201

Merged
rmanibus merged 1 commit into
mainfrom
feat/dynamic-completion-profile-auth
Apr 2, 2026
Merged

Add dynamic completion for profile and auth refs#201
rmanibus merged 1 commit into
mainfrom
feat/dynamic-completion-profile-auth

Conversation

@rmanibus
Copy link
Copy Markdown
Contributor

@rmanibus rmanibus commented Apr 2, 2026

Summary

  • add a hidden completion query path for dynamic candidates
  • use it to complete -profile and -auth-ref from the active profiles file across bash, zsh, and fish
  • add coverage for candidate resolution and emitted completion scripts

Testing

  • go test -count=1 ./cmd/cloudstic -run 'TestCompletion|TestRunCompletionQuery'

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 2, 2026

Codecov Report

❌ Patch coverage is 81.96721% with 22 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cmd/cloudstic/completion_dynamic.go 73.68% 12 Missing and 8 partials ⚠️
cmd/cloudstic/main.go 0.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@rmanibus rmanibus force-pushed the feat/dynamic-completion-profile-auth branch from 2390c9a to 8fb7615 Compare April 2, 2026 22:07
@rmanibus rmanibus force-pushed the feat/dynamic-completion-profile-auth branch from 8fb7615 to ff8daec Compare April 2, 2026 22:12
@rmanibus rmanibus merged commit c2fd368 into main Apr 2, 2026
11 checks passed
@rmanibus rmanibus deleted the feat/dynamic-completion-profile-auth branch April 2, 2026 22:24
@rmanibus rmanibus added this to the v1.14.0 milestone Apr 3, 2026
@rmanibus rmanibus added enhancement New feature or request area/completion Shell completion behavior and tooling labels Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/completion Shell completion behavior and tooling enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expand CLI completion with context-aware value suggestions

1 participant