Skip to content

Commit

Permalink
updated to be consistent with AWS CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo Tranberg authored and soniah committed Nov 25, 2015
1 parent cdf9117 commit efaaff2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .goxc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"default",
"publish-github"
],
"PackageVersion": "0.0.6",
"PackageVersion": "0.0.7",
"TaskSettings": {
"publish-github": {
"owner": "soniah",
Expand Down
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ environment:
```shell
% eval `awsenv example1`
% env | grep AWS
AWS_KEY=DEADBEEFDEADBEEF
AWS_SECRET=DEADBEEFDEADBEEF1vzfgefDEADBEEFDEADBEEF
AWS_ACCESS_KEY_ID=DEADBEEFDEADBEEF
AWS_SECRET_ACCESS_KEY=DEADBEEFDEADBEEF1vzfgefDEADBEEFDEADBEEF

% eval `awsenv example2 -f /var/tmp/credentials -v`
AWS_KEY=DEADBEEFDEADBEEF
AWS_SECRET=DEADBEEFDEADBEEF1vzfgefDEADBEEFDEADBEEF
AWS_ACCESS_KEY_ID=DEADBEEFDEADBEEF
AWS_SECRET_ACCESS_KEY=DEADBEEFDEADBEEF1vzfgefDEADBEEFDEADBEEF
AWS_KEYNAME=example2_key
AWS_KEYPATH=/Users/sonia/.ssh/example2.pem
```
Expand All @@ -84,3 +84,12 @@ Help Options:
Arguments:
Profile
```

# build

- edits
- `goxc bump`
- git add . ; git commit -m 'foo msg'
- `git push --tags`
- `goxc -bc='linux,!arm darwin'`

4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ func main() {

// output
out := ""
out += fmt.Sprintf("export AWS_KEY='%s'; ", key)
out += fmt.Sprintf("export AWS_SECRET='%s'; ", secret)
out += fmt.Sprintf("export AWS_ACCESS_KEY_ID='%s'; ", key)
out += fmt.Sprintf("export AWS_SECRET_ACCESS_KEY='%s'; ", secret)
if len(keyname) > 0 {
out += fmt.Sprintf("export AWS_KEYNAME='%s'; ", keyname)
} else {
Expand Down

0 comments on commit efaaff2

Please sign in to comment.