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

Function topRunAction

scripts/build.go:177–185  ·  view source on GitHub ↗
(arg string, args ...string)

Source from the content-addressed store, hash-verified

175}
176
177func topRunAction(arg string, args ...string) cli.ActionFunc {
178 return func(ctx context.Context, cmd *cli.Command) error {
179 if err := os.Chdir(cmd.String("top-dir")); err != nil {
180 return err
181 }
182
183 return runCmd(ctx, arg, args...)
184 }
185}
186
187func runCmd(ctx context.Context, arg string, args ...string) error {
188 cmd := exec.CommandContext(ctx, arg, args...)

Callers 1

mainFunction · 0.85

Calls 2

runCmdFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected