diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-08-07 18:57:01 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-08-07 18:57:01 +0900 |
| commit | b37c1d899349fef9e7af38940ae0c2d507c433a9 (patch) | |
| tree | 5bc20683560d7fcd571d4587487bcf8575a4cf0b /command/wrap.go | |
| parent | 6a7f124debbeb4fb36be2b5373517f5677a635d4 (diff) | |
command: use NUL for magic usage string
This change also improves documentation.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'command/wrap.go')
| -rw-r--r-- | command/wrap.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/command/wrap.go b/command/wrap.go deleted file mode 100644 index ee08a61a..00000000 --- a/command/wrap.go +++ /dev/null @@ -1,14 +0,0 @@ -package command - -// the top level node wants [Command] returned for its builder methods -type rootNode struct{ *node } - -func (r rootNode) Command(name, usage string, f HandlerFunc) Command { - r.node.Command(name, usage, f) - return r -} - -func (r rootNode) Flag(p any, name string, value FlagDefiner, usage string) Command { - r.node.Flag(p, name, value, usage) - return r -} |
