kuttl icon indicating copy to clipboard operation
kuttl copied to clipboard

KEP05: CMD Utilities

Open kensipe opened this issue 5 years ago • 0 comments

According to KEP-05:

The cmd package should provide conveniences for running arbitrary commands (i.e. shelling out) from Go code in integration tests.

Current functionality:

  • Providing an Exec function that returns exit status, stdout and stderr
package cmd
func Exec(
  command string,
  arguments []string,
  environmentVariables map[string]string,
) (
  exitStatus int,
  stdout *bytes.Buffer,
  stderr *bytes.Buffer,
  error error,
)

kensipe avatar Apr 07 '20 21:04 kensipe