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 }}
Repository navigation
Move man page compatibility to separate package #1055
area/v3relates to / is being considered for v3help wantedplease help if you can!kind/featuredescribes a code enhancement / feature requeststatus/confirmedconfirmed to be valid, but work has yet to start
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.
Add a minimal version of the cli, using conditional compilation maybe?
Solution description
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.
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.
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.
area/v3relates to / is being considered for v3help wantedplease help if you can!kind/featuredescribes a code enhancement / feature requeststatus/confirmedconfirmed to be valid, but work has yet to start
Activity
asahasrabuddhe commentedon Jan 29, 2020
This is an interesting observation. I think that we could look at making the library
modularso 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!
coilysiren commentedon Jan 29, 2020
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.
stale commentedon Jun 28, 2020
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.
stale commentedon Jul 29, 2020
Closing this as it has become stale.
[-]v2 feature: ( Minimal version of the cli-library)[/-][+]Minimal version of the cli-library[/+]dearchap commentedon Oct 17, 2022
@meatballhat i believe we have builds which doesn't include docs
dearchap commentedon Oct 21, 2022
Will consider for v3 release
[-]Minimal version of the cli-library[/-][+]Move man page compatibility to separate package[/+]Remove markdown/man docs support