Cli: v2 feature: ( Minimal version of the cli-library)

Created on 28 Jan 2020  路  4Comments  路  Source: urfave/cli

Checklist

  • [x ] Are you running the latest v2 release? The list of releases is here.
  • [x] Did you check the manual for your release? The v2 manual is here
  • [x] Did you perform a search about this feature? Here's the Github guide about searching.

What problem does this solve?

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 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.

A detailed description of what you want to happen.

Forking and doing this ourselves.

Removing the library altogether.

arev2 help wanted statuconfirmed statustale

All 4 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kklipsch picture kklipsch  路  6Comments

lynncyrin picture lynncyrin  路  3Comments

errashe picture errashe  路  3Comments

genieplus picture genieplus  路  5Comments

blackrez picture blackrez  路  5Comments