(opts *UpdateOptions, projectVariables *variables.VariableSet)
| 299 | } |
| 300 | |
| 301 | func promptForVariable(opts *UpdateOptions, projectVariables *variables.VariableSet) (*variables.Variable, error) { |
| 302 | selectedOption, err := selectors.Select(opts.Ask, "Select the variable you wish to update", func() ([]*variables.Variable, error) { return projectVariables.Variables, nil }, func(v *variables.Variable) string { return formatVariableSelection(v) }) |
| 303 | |
| 304 | if err != nil { |
| 305 | return nil, err |
| 306 | } |
| 307 | return selectedOption, nil |
| 308 | } |
| 309 | |
| 310 | func formatVariableSelection(v *variables.Variable) string { |
| 311 | value := v.Value |
no test coverage detected