Skip to content

Commit

Permalink
v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Emily Barbour committed Aug 31, 2020
1 parent d64d7f3 commit 3631ac0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Utilizes `aws configure list-profiles` via aws-cli to allow the switching of pro
### Usage

`aws-interactive-switch-profile '/tmp/foo.txt'`
`aws-switch-profiles '/tmp/foo.txt'`

Because you cannot persist global environment variables outside of Node, you must use some sort of helper function to facilitate this.

Expand All @@ -19,8 +19,8 @@ aisp() {
unset _PROFILE;
# creates tmp file
tf=$(mktemp /tmp/aisp.XXXXXXXXX)
# runs aws-interactive-switch-profile and stores user selection to tmp file
node aws-interactive-switch-profile $tf
# runs aws-switch-profiles and stores user selection to tmp file
node aws-switch-profiles $tf
# reads in tmp file and stores to variable
_PROFILE=$(<$tf);
if [ -z $_PROFILE ];
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "aws-interactive-switch-profile",
"version": "1.1.0",
"version": "1.2.0",
"description": "Switch between AWS profiles",
"author": "Emily Barbour",
"license": "MIT",
"engines": {
"node": ">=8.17.0"
},
"bin": {
"aws-interactive-switch-profile": "index.js"
"aws-switch-profiles": "index.js"
},
"dependencies": {
"prompts": "^2.3.0"
Expand Down

0 comments on commit 3631ac0

Please sign in to comment.