MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / createEnvForCli

Function createEnvForCli

test/integration/integrationtestutil.go:153–160  ·  view source on GitHub ↗
(space string)

Source from the content-addressed store, hash-verified

151}
152
153func 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
162func RunCli(space string, args ...string) (string, string, error) {
163 cliPath, cliDir, err := EnsureCli()

Callers 2

RunCliFunction · 0.85
RunCliRawOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected