(raw string)
| 956 | } |
| 957 | |
| 958 | func parseOptionalPositiveInt(raw string) (int, error) { |
| 959 | trimmed := strings.TrimSpace(raw) |
| 960 | if trimmed == "" { |
| 961 | return 0, nil |
| 962 | } |
| 963 | value, err := strconv.Atoi(trimmed) |
| 964 | if err != nil || value <= 0 { |
| 965 | return 0, fmt.Errorf("must be a positive integer or blank") |
| 966 | } |
| 967 | return value, nil |
| 968 | } |
| 969 | |
| 970 | func buildLimitPickerOptions(inventory coreansible.InventoryResult) ([]string, []string) { |
| 971 | groupSet := make(map[string]struct{}) |
no outgoing calls
no test coverage detected