From d7504f847b745fc2a0d1f922829dae63e8a8fc61 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Fri, 24 Jun 2022 07:55:49 -0400 Subject: [PATCH] Approve v2 addition of App.DefaultCommand related to #1388 --- godoc-current.txt | 3 +++ testdata/godoc-v2.x.txt | 3 +++ 2 files changed, 6 insertions(+) diff --git a/godoc-current.txt b/godoc-current.txt index a3a7faca17..c7b460b307 100644 --- a/godoc-current.txt +++ b/godoc-current.txt @@ -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 diff --git a/testdata/godoc-v2.x.txt b/testdata/godoc-v2.x.txt index a3a7faca17..c7b460b307 100644 --- a/testdata/godoc-v2.x.txt +++ b/testdata/godoc-v2.x.txt @@ -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