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

Some basic question regarding yarn: passing arguments #1

Closed
q2000foo opened this issue Jul 21, 2020 · 1 comment
Closed

Some basic question regarding yarn: passing arguments #1

q2000foo opened this issue Jul 21, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@q2000foo
Copy link

Hello,

it's me again with another basic question : )

Currently, running

yarn start

runs a process of index.ts, which is prompting for email and password input from the console.

Would it be possible to pass these parameters (and possibly others, like wikifolio ID) via flags to the call, rather than being prompted to enter them? Something along the lines of

yarn start --email thisIsMy@emailAddress.de --password verySecretPassword

would be convenient to have (with an optional keyboard prompt if no flags are passed).
However, since I don't know enough of yarn and typescript I'm not certain if and how this would be feasible.

Cheers

@RienNeVaPlus
Copy link
Owner

I've implemented only a very basic arguments feature, because I don't want to pollute the repository with 3rd-party libs which would've been required otherwise and might pose a security threat. We're already on very sensitive grounds with these plaintext credentials.

yarn start test@example.org myPa$$w0rd

@RienNeVaPlus RienNeVaPlus self-assigned this Jan 11, 2021
@RienNeVaPlus RienNeVaPlus added the enhancement New feature or request label Jan 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants