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

Function promptBool

pkg/cmd/environment/create/create.go:163–173  ·  view source on GitHub ↗
(opts *CreateOptions, value *bool, defaultValue bool, message string, help string)

Source from the content-addressed store, hash-verified

161}
162
163func promptBool(opts *CreateOptions, value *bool, defaultValue bool, message string, help string) (bool, error) {
164 if *value != defaultValue {
165 return *value, nil
166 }
167 err := opts.Ask(&survey.Confirm{
168 Message: message,
169 Help: help,
170 Default: defaultValue,
171 }, value)
172 return *value, err
173}
174
175func getAllTagSetsCallback(client *client.Client) GetAllTagSetsCallback {
176 return func() ([]*tagsets.TagSet, error) {

Callers 1

PromptMissingFunction · 0.70

Calls 1

AskMethod · 0.65

Tested by

no test coverage detected