| 8 | ) |
| 9 | |
| 10 | type Executor interface { |
| 11 | Run(ctx context.Context, cmd string) (string, error) |
| 12 | Stream(ctx context.Context, cmd string, stdout, stderr io.Writer) error |
| 13 | Close() error |
| 14 | } |
| 15 | |
| 16 | // Quote* functions are copied from github.com/alessio/shellescape package. |
| 17 | var pattern = regexp.MustCompile(`[^\w@%+=:,./-]`) |
no outgoing calls
no test coverage detected