keycard-cli icon indicating copy to clipboard operation
keycard-cli copied to clipboard

Adopt a CLI specific library

Open willianpaixao opened this issue 3 years ago • 1 comments

At the moment the arguments are read and parsed using os.Args. This approach leaves little room for improvement of the CLI tools.

I suggest the adoption of a specialized library, like github.com/spf13/cobra or github.com/urfave/cli. A huge number of improvements would be possible out of the box.

Please refer to their documentation for an extensive list of features.

willianpaixao avatar Nov 08 '22 21:11 willianpaixao

while it surely would have made sense to develop the app using one of these libs, adopting it now is quite a task. That said, a PR would be absolutely welcome!

bitgamma avatar Nov 09 '22 06:11 bitgamma