diff options
| author | Claudomator <claudomator@claudomator> | 2026-03-08 07:47:17 +0000 |
|---|---|---|
| committer | Claudomator <claudomator@claudomator> | 2026-03-08 07:47:17 +0000 |
| commit | 9955a2f10c034dac60bc17cde6b80b432e21d9d3 (patch) | |
| tree | 1054ff04e4d00b5ee72c9397f2db1e30693b8c1b /internal/cli/run.go | |
| parent | 25251a1202c1311f07172881f7d7ada6af3f25cc (diff) | |
security(cli): validate --parallel flag is positive in run command
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/cli/run.go')
| -rw-r--r-- | internal/cli/run.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/cli/run.go b/internal/cli/run.go index c666406..ed831f5 100644 --- a/internal/cli/run.go +++ b/internal/cli/run.go @@ -36,6 +36,10 @@ func newRunCmd() *cobra.Command { } func runTasks(file string, parallel int, dryRun bool) error { + if parallel < 1 { + return fmt.Errorf("--parallel must be at least 1, got %d", parallel) + } + tasks, err := task.ParseFile(file) if err != nil { return fmt.Errorf("parsing: %w", err) |
