Skip to content

Commit

Permalink
Merge pull request #278 from Cox-Automotive/fix-duration
Browse files Browse the repository at this point in the history
fixes the duration field
  • Loading branch information
americk0 authored Nov 1, 2024
2 parents 2ecf99c + e052b8c commit 6e1b786
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 10 deletions.
3 changes: 1 addition & 2 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@

Thanks for upgrading to the latest version of the ALKS CLI!

* Updates readme
* Adds deprecation warnings about role types
* Fixes duration flag for alks sessions open

Have feedback? https://github.com/Cox-Automotive/ALKS-CLI/issues

Expand Down
3 changes: 1 addition & 2 deletions dist/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@

Thanks for upgrading to the latest version of the ALKS CLI!

* Updates readme
* Adds deprecation warnings about role types
* Fixes duration flag for alks sessions open

Have feedback? https://github.com/Cox-Automotive/ALKS-CLI/issues

Expand Down
2 changes: 1 addition & 1 deletion dist/src/lib/getIamKey.js

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

2 changes: 1 addition & 1 deletion dist/src/lib/getIamKey.js.map

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

2 changes: 1 addition & 1 deletion dist/src/lib/program.js

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

2 changes: 1 addition & 1 deletion dist/src/lib/program.js.map

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion src/lib/getIamKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ export async function getIamKey(
white.underline(
`Creating new session in "${awsAccount.label ?? awsAccount.alias}" (id=${
awsAccount.id
} alias=${awsAccount.alias}) for ${alksRole}`
} alias=${
awsAccount.alias
}) for ${alksRole} expiring in ${duration} hour${
duration === 1 ? '' : 's'
}`
)
);

Expand Down
2 changes: 1 addition & 1 deletion src/lib/program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ sessions
'uses your default account from "alks developer configure"'
)
.option(
'-D, --duration',
'-D, --duration <duration>',
'the duration of the session in hours. If the duration is over the max duration allowed for the role, the max duration will be used instead',
'12'
)
Expand Down

0 comments on commit 6e1b786

Please sign in to comment.