Accept a bare integer as seconds for watchpr --interval #11

Merged
benvin merged 1 commits from benvin/watchpr-interval-units into main 2026-09-09 22:42:25 +10:00

1 Commits

Author SHA1 Message Date
unkin-agent 71e42811fb Accept a bare integer as seconds for watchpr --interval
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
- add agent.ParseDurationFlag: bare integer means seconds, duration strings still parse
- take --interval as a string and parse it in the command
- reject unparseable and non-positive values with an error naming the flag
2026-09-09 22:38:09 +10:00