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

feat: add env input - #25 #28

Merged
merged 2 commits into from
Nov 19, 2019
Merged

feat: add env input - #25 #28

merged 2 commits into from
Nov 19, 2019

Conversation

prescottprue
Copy link
Contributor

@prescottprue prescottprue commented Nov 19, 2019

@CLAassistant
Copy link

CLAassistant commented Nov 19, 2019

CLA assistant check
All committers have signed the CLA.

README.md Outdated
env: host=api.dev.local,port=4222
```

For more information, visit [the Cypress command-line docs](https://docs.cypress.io/guides/guides/command-line.html#cypress-run-env-lt-env-gt).
Copy link
Contributor

Choose a reason for hiding this comment

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

just a tip: to keep links working we use on.cypress.io redirects, which are usually just title of the page (plus any hashes). So this link would be more stable as https://on.cypress.io/command-line#cypress-run-env-lt-env-gt

// TODO should env be quoted?
// If it is a JSON, it might have spaces
cmd.push('--env')
cmd.push(envInput)
Copy link
Contributor

Choose a reason for hiding this comment

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

hmm, yes, might need quotes, maybe single quotes, ughh, will require testing across OS

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When entering JSON it should already be wrapped in it's own string right?

For now do you think we should add a note to the README about potential issues or did you want to improve the handling/testing before releasing it?

@bahmutov
Copy link
Contributor

bahmutov commented Nov 19, 2019 via email

@bahmutov bahmutov merged commit 1cad49d into cypress-io:master Nov 19, 2019
@github-actions
Copy link

🎉 This PR is included in version 1.13.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@prescottprue prescottprue deleted the env-input branch November 19, 2019 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Input for "env" argument
3 participants