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