Closed q2000foo closed 3 years ago
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
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