Skip to content

Commit

Permalink
Merge pull request #272 from Cox-Automotive/bugfix
Browse files Browse the repository at this point in the history
fixes a bug with printing the name of the generated profile
  • Loading branch information
americk0 authored Nov 9, 2023
2 parents 238dd42 + 63c4e40 commit 820d04c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

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

* Adds commands for managing AWS profiles
* Fixes the feedback message when generating a single profile

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

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

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

* Adds commands for managing AWS profiles
* Fixes the feedback message when generating a single profile

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

Expand Down
5 changes: 3 additions & 2 deletions dist/src/lib/handlers/alks-profiles-generate.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/handlers/alks-profiles-generate.js.map

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

11 changes: 4 additions & 7 deletions src/lib/handlers/alks-profiles-generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,11 @@ export async function handleAlksProfilesGenerate(
throw new Error('role is required');
}

generateProfile(
options.account,
options.role,
options.profile ?? options.namedProfile,
options.force
);
const profileName = options.profile ?? options.namedProfile;

generateProfile(options.account, options.role, profileName, options.force);

console.error(`Profile ${options.profile} generated`);
console.error(`Profile ${profileName} generated`);
} else {
throw new Error(
'Either --all or --account and --role is required at a minimum'
Expand Down

0 comments on commit 820d04c

Please sign in to comment.