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

Function formatVariableSelection

pkg/cmd/project/variables/update/update.go:310–320  ·  view source on GitHub ↗
(v *variables.Variable)

Source from the content-addressed store, hash-verified

308}
309
310func formatVariableSelection(v *variables.Variable) string {
311 value := v.Value
312 if v.IsSensitive {
313 value = "***"
314 }
315 if value == "" {
316 value = output.Dim("(no value)")
317 }
318
319 return fmt.Sprintf("%s (%s) = %s", v.Name, output.Dim(v.GetID()), value)
320}
321
322func projectSelector(questionText string, getAllProjectsCallback shared.GetAllProjectsCallback, ask question.Asker) (*projects.Project, error) {
323 existingProjects, err := getAllProjectsCallback()

Callers 1

promptForVariableFunction · 0.85

Calls 1

DimFunction · 0.92

Tested by

no test coverage detected