We have currently run into an issue where 30% of our binary size is the urfave/cli library. With the latest release v2 it it 50%, which for us is not going to fly.
A clear and concise description of what problem this feature would solve. For example:
Add a minimal build flag which does not include all the external dependencies like md2man etc, and simply contains the 'core' functionality of the library.
A detailed description of what you want to happen.
This is an interesting observation. I think that we could look at making the library modular so that it is possible for the users to import certain modules that they want to use and ignore the others. This would considerably help in keeping the size down.
Having said that, I think this won't be possible for the v2.
But, I am glad to share with you that we are currently working on v3. I think I will add this to the list of things that we want to work on. Hopefully, very soon, you should be looking at a lean version of this library.
Thanks!
I think if nothing else, it would be a good idea to add some stats about binary size to CI. We can do that now, and look at reducing it for V3.
This issue or PR has been automatically marked as stale because it has not had recent activity. Please add a comment bumping this if you're still interested in it's resolution! Thanks for your help, please let us know if you need anything else.
Closing this as it has become stale.