mirror of
https://github.com/spf13/cobra
synced 2025-04-23 07:07:18 +00:00
feedback
This commit is contained in:
parent
47f12e63de
commit
3473156b22
1 changed files with 1 additions and 2 deletions
|
@ -2926,8 +2926,7 @@ func TestHelpFuncExecuted(t *testing.T) {
|
|||
helpText := "Long description"
|
||||
|
||||
// Create a context that will be unique, not just the background context
|
||||
executionCtx, cancel := context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
executionCtx := context.WithValue(context.Background(), "testKey", "123")
|
||||
|
||||
child := &Command{Use: "child", Run: emptyRun}
|
||||
child.SetHelpFunc(func(cmd *Command, args []string) {
|
||||
|
|
Loading…
Add table
Reference in a new issue