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

Function PromptForConfigAsCode

pkg/cmd/project/create/create.go:173–186  ·  view source on GitHub ↗
(opts *CreateOptions)

Source from the content-addressed store, hash-verified

171}
172
173func PromptForConfigAsCode(opts *CreateOptions) (cmd.Dependable, error) {
174 if !opts.ConfigAsCode.Value {
175 opts.Ask(&survey.Confirm{
176 Message: "Would you like to use Config as Code?",
177 Default: false,
178 }, &opts.ConfigAsCode.Value)
179 }
180
181 if opts.ConfigAsCode.Value {
182 return opts.ConvertProjectCallback()
183 }
184
185 return nil, nil
186}

Callers 1

PromptMissingFunction · 0.70

Calls 1

AskMethod · 0.65

Tested by

no test coverage detected