command: implement help builder
All checks were successful
Test / Create distribution (push) Successful in 25s
Test / Run NixOS test (push) Successful in 3m28s

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-02-22 22:06:02 +09:00
parent 7bd48d3489
commit 8000a2febb
3 changed files with 58 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ package command
import (
"flag"
"io"
"strings"
)
type node struct {
@@ -12,6 +13,9 @@ type node struct {
out io.Writer
logf LogFunc
prefix []string
suffix strings.Builder
f HandlerFunc
set *flag.FlagSet
}