(space string)
| 151 | } |
| 152 | |
| 153 | func createEnvForCli(space string) []string { |
| 154 | return []string{ |
| 155 | "CI=1", // disable prompting |
| 156 | fmt.Sprintf("OCTOPUS_URL=%s", os.Getenv("OCTOPUS_TEST_URL")), |
| 157 | fmt.Sprintf("OCTOPUS_API_KEY=%s", os.Getenv("OCTOPUS_TEST_APIKEY")), |
| 158 | fmt.Sprintf("OCTOPUS_SPACE=%s", space), |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | func RunCli(space string, args ...string) (string, string, error) { |
| 163 | cliPath, cliDir, err := EnsureCli() |
no outgoing calls
no test coverage detected