Skip to content

consider using another argv parser #77

Closed

Description

@aleclarson

cacjs/cac is a drop-in replacement for commander made by @egoist.

What I dislike about commander:

  • tons of unresolved issues and PRs
  • its creator is no longer involved

What I like about cac:

What gives me pause about cac:

  • it has 46% test coverage (not very good)
  • it's not as "mature"
  • it doesn't have as many users (yet?)

Activity

  1. mateodelnorte commented on Dec 11, 2018

    @mateodelnorte
    Collaborator
  2. mateodelnorte commented on Dec 11, 2018

    @mateodelnorte
    Collaborator
  3. aleclarson commented on Dec 11, 2018

    @aleclarson
    Author

    What did your PR add to commander?

    git style subcommands

    I think I'll open an issue about this.

  4. aleclarson commented on Dec 11, 2018

    @aleclarson
    Author

    Also, since you're using email. Note that I edited the OP to add "fixes #39"

  5. mateodelnorte commented on Dec 11, 2018

    @mateodelnorte
    Collaborator
  6. aleclarson commented on Dec 11, 2018

    @aleclarson
    Author
  7. mateodelnorte commented on Dec 11, 2018

    @mateodelnorte
    Collaborator
  8. mateodelnorte commented on Dec 11, 2018

    @mateodelnorte
    Collaborator
  9. aleclarson commented on Dec 11, 2018

    @aleclarson
    Author

    Of course it's not merged yet. :)

    Good news! CAC already supports "git-like subcommands". It says so in the README! 🎉

  10. aleclarson commented on Dec 11, 2018

    @aleclarson
    Author

    Actually, I might have jumped the shark..

  11. mateodelnorte commented on Dec 11, 2018

    @mateodelnorte
    Collaborator
  12. Jcbobo commented on Jan 2, 2019

    @Jcbobo

    with git-like subcommands you are considering also git flow or not? ( i.e git flow feature start featurename) at the moment (if i understand correctly how the argument parsing is done ) the only way to support it at the moment is adding git flow support to meta-git plugin (but in my opinion should be a dedicated and optional plugin)

  13. mateodelnorte commented on Jan 2, 2019

    @mateodelnorte
    Collaborator

    You could easily add a plugin that just adds meta-git-flow-X commands. It wouldn't need to be in meta-git.

  14. patrickleet commented on Jan 2, 2019

    @patrickleet
    Collaborator

    @Jcbobo

    with git-like subcommands you are considering also git flow or not?

    this is kind of a tangent so I won't go deep into it, but I gave up git flow years ago. Git Flow multiplied by 10-20+ projects (microservices, modules, libs) is way too much mental overhead. Trunk based development with robust CD is much more preferable, imo. I know everyone has their own styles and meta should support any workflow you'd like, but I really do not miss git flow haha.

  15. Jcbobo commented on Jan 2, 2019

    @Jcbobo
  16. patrickleet commented on Jan 2, 2019

    @patrickleet
    Collaborator

    Yes, like I said - it should support any workflow.

    So your concern is how a git flow plugin should work given that they are piggy backing on git as well

    git flow init -d
    git flow feature start <your feature>
    

    Because

    meta git flow
    

    Would be picked up by meta-git ?

  17. Jcbobo commented on Jan 2, 2019

    @Jcbobo

    about how plugins with "similar" command are disambiguate

  18. Jcbobo commented on Jan 7, 2019

    @Jcbobo

    as supposed creating a plugin with name git flow, and command

    Yes, like I said - it should support any workflow.

    So your concern is how a git flow plugin should work given that they are piggy backing on git as well

    git flow init -d
    git flow feature start <your feature>
    

    Because

    meta git flow
    

    Would be picked up by meta-git ?

    is exacly what i noticed trying to implement the git flow plugin

  19. mateodelnorte commented on Jan 7, 2019

    @mateodelnorte
    Collaborator
  20. stale commented on Jun 13, 2019

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  21. aleclarson commented on Jun 13, 2019

    @aleclarson
    Author

    Bump. I still think this would be a good move forward.

  22. aleclarson commented on Jul 2, 2019

    @aleclarson
    Author

    I've been using another commander-like parser recently called "sade". I haven't had time to compare it with "cac", but it's almost half the size.

  23. mateodelnorte commented on Jul 3, 2019

    @mateodelnorte
    Collaborator

    This looks very commander-like. I don't see coverage for git-style subcommands, though. And that's really the main feature we get from commander, other than ability to specify commands and options.

  24. stale commented on Sep 1, 2019

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions