Skip to content

Centralize auto-update duration parsing#593

Merged
ryanfowler merged 1 commit into
mainfrom
fix-autoupdate-duration-parsing
May 26, 2026
Merged

Centralize auto-update duration parsing#593
ryanfowler merged 1 commit into
mainfrom
fix-autoupdate-duration-parsing

Conversation

@ryanfowler
Copy link
Copy Markdown
Owner

Summary

  • Added a shared duration parser in src/duration.rs and wired both config validation and auto-update execution to it.
  • Extended auto-update intervals to accept fractional units, leading +, and d for day-sized intervals.
  • Updated the configuration docs to match the supported syntax.
  • Added tests covering 1.5h, +30m, 1d, and negative-duration rejection.

Testing

  • cargo fmt
  • cargo clippy --locked --all-targets --all-features -- -D warnings
  • cargo test --all-features
  • cargo test --all-features --test integration -- --test-threads=1

@ryanfowler ryanfowler enabled auto-merge May 26, 2026 03:16
@ryanfowler ryanfowler merged commit 7c2212d into main May 26, 2026
4 checks passed
@ryanfowler ryanfowler deleted the fix-autoupdate-duration-parsing branch May 26, 2026 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant