Function
promptBool
(opts *CreateOptions, value *bool, defaultValue bool, message string, help string)
Source from the content-addressed store, hash-verified
| 161 | } |
| 162 | |
| 163 | func 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 | |
| 175 | func getAllTagSetsCallback(client *client.Client) GetAllTagSetsCallback { |
| 176 | return func() ([]*tagsets.TagSet, error) { |
Tested by
no test coverage detected