Approve v2 addition of App.DefaultCommand

related to #1388
main
Dan Buch 2 years ago
parent d29120f08b
commit d7504f847b
Signed by: meatballhat
GPG Key ID: A12F782281063434

@ -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

@ -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

Loading…
Cancel
Save