config-file-validator icon indicating copy to clipboard operation
config-file-validator copied to clipboard

Refactor CLI code to use Cobra

Open kehoecj opened this issue 1 year ago • 3 comments

This was proposed by the community a while ago but it seems like a good time to refactor our CLI logic from using Flags to COBRA. Cobra offers a lot of functionality such as setting values from environment variables instead of/in addition to command line args, autocompletion, auto generated man pages, etc

kehoecj avatar Feb 02 '24 19:02 kehoecj

I would like to contribute to this issue!

1garo avatar Feb 26 '24 18:02 1garo

I would like to contribute to this issue!

@1garo It's yours!

kehoecj avatar Feb 26 '24 18:02 kehoecj

@kehoecj working on it!

While reading the readme I came across the build part, have you ever thought about creating a Makefile? I could do it.

Maybe something like:

$ make mac
$ make mac-install

$ make win
$ make win-install

$ make linux
$ make linux-install

1garo avatar Feb 27 '24 15:02 1garo