helm-schema-gen icon indicating copy to clipboard operation
helm-schema-gen copied to clipboard

Get rid of cobra for CLI work

Open karuppiah7890 opened this issue 5 years ago • 0 comments

I realized that cobra might be a little too much for the set of features I want to use. I think something lighter than cobra could do the work.

Actually I'm just showing help, and running the command. I'm not even having any flags to parse. And flag parsing can be done with standard library too. And I have only one command, no sub commands etc.

I just liked the way cobra showed the help and stuff though. It was one reason why I didn't use other CLI frameworks. But I didn't realize that we almost don't need a framework. Almost. Framework is probably just too much and is just going put a lot of weight on the binary size.

The two options are -

  • Checkout no framework and write plain code
  • Use a very very light framework for just the work that's needed to be done

Goal:

  • Use something lighter and simple
  • Make the binary size smaller

karuppiah7890 avatar Aug 23 '20 17:08 karuppiah7890