forked from urfave/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
and updated tests to use both strings and *mail.Address
- Loading branch information
1 parent
6d7ed03
commit cfd0e74
Showing
6 changed files
with
16 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,7 @@ func ExampleApp_Run() { | |
return nil | ||
}, | ||
UsageText: "app [first_arg] [second_arg]", | ||
Authors: []*mail.Address{{Name: "Oliver Allen", Address: "[email protected]"}}, | ||
Authors: []any{&mail.Address{Name: "Oliver Allen", Address: "[email protected]"}, "[email protected]"}, | ||
} | ||
|
||
app.Run(os.Args) | ||
|
@@ -101,9 +101,9 @@ func ExampleApp_Run_appHelp() { | |
Name: "greet", | ||
Version: "0.1.0", | ||
Description: "This is how we describe greet the app", | ||
Authors: []*mail.Address{ | ||
{Name: "Harrison", Address: "[email protected]"}, | ||
{Name: "Oliver Allen", Address: "[email protected]"}, | ||
Authors: []any{ | ||
&mail.Address{Name: "Harrison", Address: "harrison@lolwut.example.com"}, | ||
"Oliver Allen <oliver@toyshop.example.com>", | ||
}, | ||
Flags: []Flag{ | ||
&StringFlag{Name: "name", Value: "bob", Usage: "a name to say"}, | ||
|
@@ -136,8 +136,8 @@ func ExampleApp_Run_appHelp() { | |
// This is how we describe greet the app | ||
// | ||
// AUTHORS: | ||
// "Harrison" <[email protected]> | ||
// "Oliver Allen" <[email protected]> | ||
// "Harrison" <harrison@lolwut.example.com> | ||
// Oliver Allen <oliver@toyshop.example.com> | ||
// | ||
// COMMANDS: | ||
// describeit, d use it to see a description | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,9 +128,9 @@ Should be a part of the same code block | |
app.UsageText = "app [first_arg] [second_arg]" | ||
app.Description = `Description of the application.` | ||
app.Usage = "Some app" | ||
app.Authors = []*mail.Address{ | ||
{Name: "Harrison", Address: "[email protected]"}, | ||
{Name: "Oliver Allen", Address: "[email protected]"}, | ||
app.Authors = []any{ | ||
"Harrison <harrison@lolwut.example.com>", | ||
&mail.Address{Name: "Oliver Allen", Address: "[email protected]"}, | ||
} | ||
return app | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters