feat(diary): boot list, help and completion requests quietly (quick-261028-rqc)
- helpOnly also counts no command word, list, help, cobra's shell completion requests and --help=<bool>, read the way pflag does - TestHelpOnlyAgreesWithCobra pins the classification against bonfire's real dispatch, with the passthrough --help case as the exception - console and logging docs describe which invocations boot quietly
This commit is contained in:
@@ -82,6 +82,12 @@ func TestBootQuietSmoke(t *testing.T) {
|
||||
{name: "serve --help", args: []string{"serve", "--help"}},
|
||||
{name: "serve", args: []string{"serve"}, wantInfo: true},
|
||||
{name: "literal options", args: []string{"serve", "--help"}, literal: true, wantInfo: true},
|
||||
{name: "no args", args: []string{}},
|
||||
{name: "list", args: []string{"list"}},
|
||||
{name: "help serve", args: []string{"help", "serve"}},
|
||||
{name: "-h", args: []string{"-h"}},
|
||||
{name: "-v serve --help", args: []string{"-v", "serve", "--help"}, wantInfo: true},
|
||||
{name: "queue:work", args: []string{"queue:work"}, wantInfo: true},
|
||||
}
|
||||
for _, row := range rows {
|
||||
t.Run(row.name, func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user