Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alexa: allows use of env. variables instead of cli_config for ask-cli #143

Merged
merged 1 commit into from
Jun 17, 2020

Conversation

KaanKC
Copy link
Contributor

@KaanKC KaanKC commented Jun 16, 2020

the Jovo CLI always added a profile to each ask cli command even if the user didn't parse one. That resulted in the ask-cli never checking for any kind of env variables. Instead, it always checked for the 'default' profiles config.

The ASK-CLI determines the correct profile the following way: it's either the parsed askProfile using '-p' > the access/refresh token set as env variables > the ASK_DEFAULT_PROFILE env variable > 'default' profile. Since Jovo parsed an askProfile no matter what, the other 3 possibilities were never executed

ASK-CLI determining the correct profile: https://github.com/alexa/ask-cli/blob/develop/lib/utils/profile-helper.js#L17

Proposed changes

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

the Jovo CLI always added a profile to each ask cli command even if the user didn't parse one. That resulted in the ask-cli never checking for any kind of env variables. Instead it always checked for the 'default' profiles config. \n The ask-cli handles the parsing of the ask profile as well. It's either the parsed askProfile using '-p' > the access/refresh token set as env variables > the ASK_DEFAULT_PROFILE env variable> 'default'. Since Jovo parsed an askProfile no matter what, the other 3 possibilities were never executed
@aswetlow aswetlow merged commit fbf6d44 into jovotech:master Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants