diff options
| author | Basti <107778224+krakenbite@users.noreply.github.com> | 2023-12-27 10:59:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-27 10:59:05 +0100 |
| commit | 94a0481f182b4a2cc87e76af8761e00c07de79dc (patch) | |
| tree | b59171e07608f3c077d7ce7396b4ae2c3d9c2359 /plugins | |
| parent | 64d881b479cec5e62384176773f1b4d0a057ba47 (diff) | |
| download | zsh-94a0481f182b4a2cc87e76af8761e00c07de79dc.tar.gz zsh-94a0481f182b4a2cc87e76af8761e00c07de79dc.tar.bz2 zsh-94a0481f182b4a2cc87e76af8761e00c07de79dc.zip | |
feat(aws): add sso logout capabilities (#12113)
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/aws/README.md | 1 | ||||
| -rw-r--r-- | plugins/aws/aws.plugin.zsh | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/plugins/aws/README.md b/plugins/aws/README.md index 9e1e055b8..4850e223e 100644 --- a/plugins/aws/README.md +++ b/plugins/aws/README.md @@ -16,6 +16,7 @@ plugins=(... aws) It also sets `$AWS_EB_PROFILE` to `<profile>` for the Elastic Beanstalk CLI. It sets `$AWS_PROFILE_REGION` for display in `aws_prompt_info`. Run `asp` without arguments to clear the profile. * `asp [<profile>] login`: If AWS SSO has been configured in your aws profile, it will run the `aws sso login` command following profile selection. +* `asp [<profile>] logout`: If AWS SSO has been configured in your aws profile, it will run the `aws sso logout` command following profile selection. * `asr [<region>]`: sets `$AWS_REGION` and `$AWS_DEFAULT_REGION` (legacy) to `<region>`. Run `asr` without arguments to clear the profile. diff --git a/plugins/aws/aws.plugin.zsh b/plugins/aws/aws.plugin.zsh index c946515be..0d7040f92 100644 --- a/plugins/aws/aws.plugin.zsh +++ b/plugins/aws/aws.plugin.zsh @@ -30,6 +30,8 @@ function asp() { if [[ "$2" == "login" ]]; then aws sso login + elif [[ "$2" == "logout" ]]; then + aws sso logout fi } |
