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

Remove NewApp func #1626

Merged
merged 1 commit into from
Dec 18, 2022
Merged

Remove NewApp func #1626

merged 1 commit into from
Dec 18, 2022

Conversation

meatballhat
Copy link
Member

What type of PR is this?

  • cleanup

What this PR does / why we need it:

in favor of focusing on declarative API.

Which issue(s) this PR fixes:

Supports #1586

in favor of focusing on declarative API.

Supports #1586
@meatballhat meatballhat added this to the Release 3.x milestone Dec 18, 2022
@meatballhat meatballhat requested a review from a team as a code owner December 18, 2022 13:42
Copy link
Contributor

@julian7 julian7 left a comment

Choose a reason for hiding this comment

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

I’m all for declarative usage

@@ -574,58 +574,6 @@ func TestShowCommandHelp_CommandAliases(t *testing.T) {
}
}

func TestHelpNameConsistency(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

what happened to this ?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's no longer necessary or valid given that NewApp is removed

Copy link
Contributor

Choose a reason for hiding this comment

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

No no no. This is to test whether the help occurs consistently between

app help cmd
app cmd help
app cmd -h
app cmd subcmd help

Copy link
Member Author

Choose a reason for hiding this comment

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

@meatballhat meatballhat merged commit f983141 into main Dec 18, 2022
@meatballhat meatballhat deleted the rm-newapp branch December 18, 2022 19:38
Comment on lines -580 to -581
// The inconsistency shows up when users use NewApp() as opposed to
// using App{...} directly
Copy link
Member Author

Choose a reason for hiding this comment

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

@dearchap sorry I was interpreting this comment to mean that since NewApp is removed that testing the inconsistency was no longer valid 🤔

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.

4 participants