Skip to content

Commit

Permalink
Approve v2 addition of App.DefaultCommand
Browse files Browse the repository at this point in the history
related to #1388
  • Loading branch information
meatballhat committed Jun 24, 2022
1 parent d29120f commit d7504f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions godoc-current.txt
Expand Up @@ -269,6 +269,9 @@ type App struct {
Version string
// Description of the program
Description string
// DefaultCommand is the (optional) name of a command
// to run if no command names are passed as CLI arguments.
DefaultCommand string
// List of commands to execute
Commands []*Command
// List of flags to parse
Expand Down
3 changes: 3 additions & 0 deletions testdata/godoc-v2.x.txt
Expand Up @@ -269,6 +269,9 @@ type App struct {
Version string
// Description of the program
Description string
// DefaultCommand is the (optional) name of a command
// to run if no command names are passed as CLI arguments.
DefaultCommand string
// List of commands to execute
Commands []*Command
// List of flags to parse
Expand Down

0 comments on commit d7504f8

Please sign in to comment.