Skip to content

Move man page compatibility to separate package #1055

Closed

Description

@oleorhagen

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.

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

Activity

  1. added
    area/v2
    status/triage
    on Jan 28, 2020
  2. asahasrabuddhe commented on Jan 29, 2020

    @asahasrabuddhe
    Member

    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!

  3. added
    help wanted
    on Jan 29, 2020
  4. coilysiren commented on Jan 29, 2020

    @coilysiren
    Member

    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.

  5. added
    status/confirmed
    and removed
    status/triage
    on Mar 30, 2020
  6. stale commented on Jun 28, 2020

    @stale

    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.

  7. added
    status/stale
    on Jun 28, 2020
  8. stale commented on Jul 29, 2020

    @stale

    Closing this as it has become stale.

  9. removed
    status/stale
    on Apr 22, 2022
  10. added this to the Release 2.5+ milestone on Apr 22, 2022
  11. added
    kind/feature
    on Apr 22, 2022
  12. changed the title [-]v2 feature: ( Minimal version of the cli-library)[/-] [+]Minimal version of the cli-library[/+] on Apr 22, 2022
  13. dearchap commented on Oct 17, 2022

    @dearchap
    Contributor

    @meatballhat i believe we have builds which doesn't include docs

  14. dearchap commented on Oct 21, 2022

    @dearchap
    Contributor

    Will consider for v3 release

  15. changed the title [-]Minimal version of the cli-library[/-] [+]Move man page compatibility to separate package[/+] on Jan 6, 2023
  16. added
    area/v3
    and removed
    area/v2
    on Jan 24, 2023
  17. self-assigned this
    on Jun 24, 2023
  18. added a commit that references this issue on Jun 24, 2023
    0451f3c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/v3help wantedkind/featurestatus/confirmed

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions