Skip to content

feat: add dynamic profile listing to fish shell autocomplete#919

Open
allixsenos wants to merge 1 commit intofwdcloudsec:mainfrom
allixsenos:feat/fish-profile-autocomplete
Open

feat: add dynamic profile listing to fish shell autocomplete#919
allixsenos wants to merge 1 commit intofwdcloudsec:mainfrom
allixsenos:feat/fish-profile-autocomplete

Conversation

@allixsenos
Copy link

@allixsenos allixsenos commented Feb 2, 2026

Summary

  • Fish shell completions previously used urfave/cli's static ToFishCompletion(), which only generated completions for subcommands and flags — AWS profile names were never listed
  • Replaced with dynamic fish completion templates that call assumego --generate-bash-completion at tab-completion time, matching the existing zsh behavior
  • Separate completion files are now generated for both assume and granted commands

Test plan

  • Run granted completion --shell fish and verify files are created in ~/.config/fish/completions/
  • In fish shell, type assume + tab and verify AWS profiles from ~/.aws/config and ~/.aws/credentials are listed
  • Verify assume - + tab still lists flags
  • Verify granted + tab still lists subcommands

🤖 Generated with Claude Code

Fish completions previously used urfave/cli's static ToFishCompletion()
which only generated completions for subcommands and flags. This replaces
it with dynamic completion templates that call assumego
--generate-bash-completion at tab-completion time, matching the existing
zsh behavior and enabling AWS profile listing.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@allixsenos
Copy link
Author

fixes #583

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.

1 participant