MCPcopy Create free account
hub / github.com/anchordotdev/cli / execute

Function execute

cmdtest/cmdtest.go:60–68  ·  view source on GitHub ↗
(cmd *cobra.Command, args ...string)

Source from the content-addressed store, hash-verified

58}
59
60func execute(cmd *cobra.Command, args ...string) (*bytes.Buffer, error) {
61 b := new(bytes.Buffer)
62 cmd.SetErr(b)
63 cmd.SetOut(b)
64 cmd.SetArgs(args)
65
66 err := cmd.Execute()
67 return b, err
68}
69
70func executeSkip(cmd *cobra.Command, args ...string) (*bytes.Buffer, error) {
71 cmd = cli.NewTestCmd(cmd)

Callers 3

TestCfgFunction · 0.85
TestHelpFunction · 0.85
executeSkipFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestCfgFunction · 0.68
TestHelpFunction · 0.68