Explain, generate, validate, and preview cron expressions — all from plain English or raw cron syntax.
*"0 9 1-5 run next?"Run the script with uv run (handles dependencies automatically):
# Explain a cron expression
uv run scripts/cron.py explain "0 9 * * 1-5"
# Generate cron from plain English
uv run scripts/cron.py generate "every weekday at 9am"
uv run scripts/cron.py generate "every 15 minutes"
uv run scripts/cron.py generate "first day of month at midnight"
# Show next N run times (default 5)
uv run scripts/cron.py next "0 9 * * 1-5"
uv run scripts/cron.py next "*/15 * * * *" --count 10
# Validate a cron expression
uv run scripts/cron.py validate "0 9 * * 1-5"
uv run scripts/cron.py validate "60 9 * * *"
explain, generate, next, or validate.uv run scripts/cron.py "" command.See references/cron-syntax.md for field ranges, special characters, and common examples.
共 1 个版本