Add fish shell format for export-credentials#9996
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request adds Fish shell support to the aws configure export-credentials command, allowing Fish shell users to export AWS credentials in a format compatible with their shell.
Changes:
- Added a new
FishShellFormatterclass that outputs credentials using Fish shell'sset -gxsyntax - Updated the
SUPPORTED_FORMATSdictionary to include the new Fish formatter - Added comprehensive unit tests for the Fish shell formatter covering both static and temporary credentials
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| awscli/customizations/configure/exportcreds.py | Implements FishShellFormatter class and registers it in SUPPORTED_FORMATS |
| tests/unit/customizations/configure/test_exportcreds.py | Adds test cases for FishShellFormatter with expected output formats |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
622af44 to
1c54577
Compare
|
Diff looks good, thanks for opening this! Can you run |
|
Done! Added changelog entry with |
|
Merged for our next release, I'll comment again with the version number once it's out. |
Resolves #9670
Description of changes:
This change lets Fish users apply exported credentials directly without extra conversion.
Usage:
Example output:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.