Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

goat: update to v3 of urfav/cli #926

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

bnewbold
Copy link
Collaborator

@bnewbold bnewbold commented Feb 2, 2025

Transition guide here: https://cli.urfave.org/migrate-v2-to-v3/

Overall updates are good/fine, but the big win and motivation here is finally having CLI arg parsing order be more flexible.

Eg:

# --did is a boolean flag

goat resolve --did atproto.com
goat resolve atproto.com --did

In v2, only the first is allowed, while with v3 the later works.

I'll probably do this update/refactor across all our commands soon.

Copy link
Contributor

@brianolson brianolson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a little tedious to change but probably better?

@brianolson
Copy link
Contributor

cli v3 is still "beta1", maybe wait for full 3.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants