MCPcopy
hub / github.com/spf13/cobra / executeCommand

Function executeCommand

command_test.go:32–35  ·  view source on GitHub ↗
(root *Command, args ...string)

Source from the content-addressed store, hash-verified

30func emptyRun(*Command, []string) {}
31
32func executeCommand(root *Command, args ...string) (output string, err error) {
33 _, output, err = executeCommandC(root, args...)
34 return output, err
35}
36
37func executeCommandWithContext(ctx context.Context, root *Command, args ...string) (output string, err error) {
38 buf := new(bytes.Buffer)

Calls 1

executeCommandCFunction · 0.85

Tested by

no test coverage detected