Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Conversation

@anaik-zam
Copy link
Contributor

No description provided.

Copy link
Contributor

@andresmgot andresmgot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you for the patch! Do you mind bumping the package version to release the changes?

lib/helpers.js Outdated
}
return accessToken;
} else if (cmd && cmd === 'aws') {
} else if (cmd && awsClis.indexOf(cmd) !== -1) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a way a bit more readable would be awsClis.includes(cmd).

lib/helpers.js Outdated
_.get(userInfo, 'user.auth-provider.config.id-token');
const accessToken = _.get(userInfo, 'user.auth-provider.config.access-token');
let cmd = _.get(userInfo, 'user.exec.command');
const awsClis = ['aws', 'aws-iam-authenticator']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, you are missing a ; at the end of this line

@anaik-zam
Copy link
Contributor Author

made syntax, linting changes and upticked the version @andresmgot, let me know if you any other changes are required.

Copy link
Contributor

@andresmgot andresmgot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants