MCPcopy
hub / github.com/urfave/cli / runCmd

Function runCmd

scripts/build.go:187–196  ·  view source on GitHub ↗
(ctx context.Context, arg string, args ...string)

Source from the content-addressed store, hash-verified

185}
186
187func runCmd(ctx context.Context, arg string, args ...string) error {
188 cmd := exec.CommandContext(ctx, arg, args...)
189
190 cmd.Stdin = os.Stdin
191 cmd.Stdout = os.Stdout
192 cmd.Stderr = os.Stderr
193
194 fmt.Fprintf(os.Stderr, "# ---> %s\n", cmd)
195 return cmd.Run()
196}
197
198func downloadFile(src, dest string, dirPerm, perm os.FileMode) error {
199 req, err := http.NewRequest(http.MethodGet, src, nil)

Callers 10

topRunActionFunction · 0.85
VetActionFuncFunction · 0.85
TestActionFuncFunction · 0.85
GfmrunActionFuncFunction · 0.85
DiffCheckActionFuncFunction · 0.85
EnsureMkdocsActionFuncFunction · 0.85
V3DiffFunction · 0.85
getSizeFunction · 0.85

Calls 1

RunMethod · 0.45

Tested by 1

TestActionFuncFunction · 0.68