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

cli: migrate from urfave/cli/v1 to urfave/cli/v2 #263

Merged
merged 1 commit into from Dec 26, 2021

Conversation

mritunjaysharma394
Copy link
Contributor

Signed-off-by: Mritunjay Sharma mritunjaysharma394@gmail.com

Fixes-262

This PR fixes #262

What

Migrates the Main App from urfave/cli to urfave/cli/v2

Why

Taking advantage of the new version of urfave/cli

How Tested

Locally

Signed-off-by: Mritunjay Sharma <mritunjaysharma394@gmail.com>
@ghost
Copy link

ghost commented Dec 26, 2021

CodeSee Review Map:

Review these changes using an interactive CodeSee Map

Review in an interactive map

View more CodeSee Maps

Legend

CodeSee Map Legend

@kcq
Copy link
Member

kcq commented Dec 26, 2021

Thanks a lot for the PR @mritunjaysharma394 ! Quite a lot there :) Nice catch with those BoolTFlag changes too.

@kcq kcq merged commit 0d357a9 into slimtoolkit:master Dec 26, 2021
@mritunjaysharma394
Copy link
Contributor Author

Thank you so much for the review and your kind words, @kcq :-)

really means a lot, I will also propose changes to their migrate guide too so that changes like BoolTFlags, Going away of GlobalString, etc and NewStringSlice are reflected there :)

@kcq
Copy link
Member

kcq commented Dec 26, 2021

@mritunjaysharma394 Good idea! Their guide definitely needs more info. Now it'll be interesting to see if there are any unexpected gotchas :) I wish they'd still allow the flags anywhere, but in v2 they need to be first.

@mritunjaysharma394
Copy link
Contributor Author

Yes @kcq, for now I have created a PR for them urfave/cli#1319 and also hoping that we don’t face unexpected gotchas and even if we do, we will solve it :)

thanks for all the help!

@kcq
Copy link
Member

kcq commented Dec 27, 2021

nice PR!

@mritunjaysharma394
Copy link
Contributor Author

Thanks a lot :)

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.

Migrate the Main App from urfave/cli to urfave/cli/v2
2 participants