Open macLurker opened 8 months ago
The intention has been all along to make a separate command line tool from the XKpasswd library, but that works better when all the functionality is there. I prefer to focus on getting the webapp's functionality on par with the old version before focusing on the CLI version.
This simple initial CLI proposal makes sense, but I would ask we try keep it as compatible as possible with the Perl CLI's interface: https://github.com/bbusschots/hsxkpasswd/blob/master/bin/hsxkpasswd
Also, to make the code maintainable I feel strongly we should build the CLI on top of a well supported framework for JavaScript CLI apps. I think the following are what we should target:
I think we might need to add support for Promises to the core library before we are ready for a CLI.
This seems like a good tutorial: https://blog.logrocket.com/creating-a-cli-tool-with-node-js/
Is it possible to make a library out of it so people would be able to include it in other projects?
Is it possible to make a library out of it so people would be able to include it in other projects?
Definitely — this repo was intended for just the library, but for now it has the web interface in it too to speed up development. Once the site comes out of beta it will be moved to its own repo, and this repo will become just the library. A third repo will also be created for the CLI.
@hepabolu noted in another issue that, if we want to automate getting passwords, we should do it from the command line, not the web page.
Please add the ability to get passwords from the command line. Include ability to select:
Output the new passwords to STDOUT or a text file.