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

Function ToVariableStringArray

pkg/executionscommon/executionscommon.go:316–326  ·  view source on GitHub ↗
(variables map[string]string)

Source from the content-addressed store, hash-verified

314}
315
316func ToVariableStringArray(variables map[string]string) []string {
317 result := make([]string, 0, len(variables))
318 for k, v := range variables {
319 if k == "" || v == "" {
320 continue
321 }
322 result = append(result, fmt.Sprintf("%s:%s", k, v))
323 }
324 sort.Strings(result) // sort for reliable test output
325 return result
326}
327
328func LookupGuidedFailureModeString(value string) string {
329 switch value {

Callers 4

deployRunFunction · 0.92
runDbRunbookFunction · 0.92
runGitRunbookFunction · 0.92

Calls

no outgoing calls

Tested by 1