You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.
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
The text was updated successfully, but these errors were encountered:
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 -
Goal:
The text was updated successfully, but these errors were encountered: