(raw string)
| 362 | } |
| 363 | |
| 364 | func parseToolIDArg(raw string) (toolspkg.ToolID, error) { |
| 365 | id := toolspkg.ToolID(strings.TrimSpace(raw)) |
| 366 | if err := id.Validate(); err != nil { |
| 367 | return "", toolValidationCommandError("", "tool id is invalid", err) |
| 368 | } |
| 369 | return id, nil |
| 370 | } |
| 371 | |
| 372 | func parseToolsetIDArg(raw string) (toolspkg.ToolsetID, error) { |
| 373 | id := toolspkg.ToolsetID(strings.TrimSpace(raw)) |
no test coverage detected