diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-02-23 01:36:48 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-02-23 01:36:48 +0900 |
| commit | 647c6ea21baa28192e5c4339ed4cdf83e994036e (patch) | |
| tree | f1c0e5c757bb24c0be905951c86ba701f18cddee /command/command.go | |
| parent | 416d93e8802dc4f42ce814edf874c79e2682af58 (diff) | |
command: hide internal commands
This marks commands as internal via a magic usage string.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'command/command.go')
| -rw-r--r-- | command/command.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/command/command.go b/command/command.go index 525dde3d..eeec135d 100644 --- a/command/command.go +++ b/command/command.go @@ -6,6 +6,9 @@ import ( "strings" ) +// UsageInternal causes the command to be hidden from help text when set as the usage string. +const UsageInternal = "internal" + type ( // HandlerFunc is called when matching a directly handled subcommand tree. HandlerFunc = func(args []string) error |
