(ctx context.Context, exe string, args ...string)
| 165 | } |
| 166 | |
| 167 | func sh(ctx context.Context, exe string, args ...string) (string, error) { |
| 168 | cmd := exec.CommandContext(ctx, exe, args...) |
| 169 | cmd.Stdin = os.Stdin |
| 170 | cmd.Stderr = os.Stderr |
| 171 | |
| 172 | fmt.Fprintf(os.Stderr, "# ---> %s\n", cmd) |
| 173 | outBytes, err := cmd.Output() |
| 174 | return string(outBytes), err |
| 175 | } |
| 176 | |
| 177 | func topRunAction(arg string, args ...string) cli.ActionFunc { |
| 178 | return func(ctx context.Context, cmd *cli.Command) error { |
no outgoing calls
no test coverage detected