From 647c6ea21baa28192e5c4339ed4cdf83e994036e Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 23 Feb 2025 01:36:48 +0900 Subject: command: hide internal commands This marks commands as internal via a magic usage string. Signed-off-by: Ophestra --- command/parse_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'command/parse_test.go') diff --git a/command/parse_test.go b/command/parse_test.go index 3174dccc..4bb924f4 100644 --- a/command/parse_test.go +++ b/command/parse_test.go @@ -289,6 +289,7 @@ func buildTestCommand(wout, wlog io.Writer) (c command.Command) { }) c.New("empty", "empty subcommand") + c.New("hidden", command.UsageInternal) c.New("join", "wraps strings.Join"). Command("out", "write result to wout", func(args []string) error { -- cgit v1.3.1