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

Function AskPackageDownload

pkg/executionscommon/executionscommon.go:135–140  ·  view source on GitHub ↗
(asker question.Asker)

Source from the content-addressed store, hash-verified

133}
134
135func AskPackageDownload(asker question.Asker) (bool, error) {
136 result, err := question.SelectMap(asker, "Package download", []bool{true, false}, LookupPackageDownloadString)
137 // our question is phrased such that "Use cached packages" (the do-nothing option) is true,
138 // but we want to set the --force-package-download flag, so we need to invert the response
139 return !result, err
140}
141
142func AskGuidedFailureMode(asker question.Asker) (string, error) {
143 modes := []string{

Callers 2

AskQuestionsFunction · 0.92
askCommonAdvancedOptionsFunction · 0.92

Calls 1

SelectMapFunction · 0.92

Tested by

no test coverage detected