|
|
|
@ -56,7 +56,7 @@ func TestSuggestFlagFromError(t *testing.T) {
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// Then
|
|
|
|
|
expect(t, res, fmt.Sprintf(didYouMeanTemplate+"\n\n", testCase.expected))
|
|
|
|
|
expect(t, res, fmt.Sprintf(SuggestDidYouMeanTemplate+"\n\n", testCase.expected))
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -116,7 +116,7 @@ func TestSuggestCommand(t *testing.T) {
|
|
|
|
|
res := suggestCommand(app.Commands, testCase.provided)
|
|
|
|
|
|
|
|
|
|
// Then
|
|
|
|
|
expect(t, res, fmt.Sprintf(didYouMeanTemplate, testCase.expected))
|
|
|
|
|
expect(t, res, fmt.Sprintf(SuggestDidYouMeanTemplate, testCase.expected))
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -140,7 +140,7 @@ func ExampleApp_Suggest() {
|
|
|
|
|
// Output:
|
|
|
|
|
// Incorrect Usage. flag provided but not defined: -nema
|
|
|
|
|
//
|
|
|
|
|
// Did you mean '--name'?
|
|
|
|
|
// Did you mean "--name"?
|
|
|
|
|
//
|
|
|
|
|
// (this space intentionally left blank)
|
|
|
|
|
}
|
|
|
|
@ -181,7 +181,7 @@ func ExampleApp_Suggest_command() {
|
|
|
|
|
// Output:
|
|
|
|
|
// Incorrect Usage: flag provided but not defined: -sliming
|
|
|
|
|
//
|
|
|
|
|
// Did you mean '--smiling'?
|
|
|
|
|
// Did you mean "--smiling"?
|
|
|
|
|
//
|
|
|
|
|
// (this space intentionally left blank)
|
|
|
|
|
}
|
|
|
|
|