This file contains 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
# nushell support for https://github.com/common-fate/granted | |
# Save this file to `granted.nu` in your nushell config dir, then add `use granted.nu *` in your config.nu | |
# assume - https://granted.dev | |
export def --env --wrapped assume [...rest: string] { | |
const var_names = [ | |
"AWS_ACCESS_KEY_ID", | |
"AWS_SECRET_ACCESS_KEY", | |
"AWS_SESSION_TOKEN", | |
"AWS_PROFILE", |