aboutsummaryrefslogtreecommitdiffhomepage
path: root/command/builder_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-02-23 00:55:18 +0900
committerOphestra <cat@gensokyo.uk>2025-02-23 00:55:18 +0900
commit312753924be1109a22269ebde81fa244ef9b6379 (patch)
tree4d2d7e4f1b07f675eeac82dad55478714981a597 /command/builder_test.go
parent54308f79d206f89807aba3bc998fc770d01efed1 (diff)
command: root early handler func special case
This allows for early initialisation with access to flags on the root node. This can be useful for configuring global state used by subcommands. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'command/builder_test.go')
-rw-r--r--command/builder_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/command/builder_test.go b/command/builder_test.go
index 1cd4ce38..22ce7aee 100644
--- a/command/builder_test.go
+++ b/command/builder_test.go
@@ -7,7 +7,7 @@ import (
)
func TestBuild(t *testing.T) {
- c := command.New(nil, nil, "test")
+ c := command.New(nil, nil, "test", nil)
stubHandler := func([]string) error { panic("unreachable") }
t.Run("nil direct handler", func(t *testing.T) {