- 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
11 lines
276 B
Go
11 lines
276 B
Go
package diary
|
|
|
|
// HelpOnly exposes helpOnly to the external tests.
|
|
var HelpOnly = helpOnly
|
|
|
|
// The completion command names helpOnly recognises, for the cobra check.
|
|
const (
|
|
CompleteRequestCmd = completeRequestCmd
|
|
CompleteNoDescRequestCmd = completeNoDescRequestCmd
|
|
)
|