Add system cron discovery and management; bump to 0.2.0
CI / test (3.11) (pull_request) Successful in 48s
CI / test (3.13) (pull_request) Successful in 54s

This commit is contained in:
mdaleo404 committed 2026-09-26 08:43:00 +01:00
1 parent 62d505a17e
commit 58d8d0f378
19 files changed
+1129 -55

No files matched your search

+12 -3
View File
@@ -65,6 +65,12 @@ Create a cron job:
$ schedls new cleanup --cron --cron-expr '0 4 * * 0' -- /usr/local/bin/cleanup
```
Create a system cron drop-in as root (runs as `root` unless `--run-as` is given):
```console
$ sudo schedls new updates --cron --system --daily 03:00 -- /usr/local/bin/updates
```
Prefer to be guided? Add `-i`/`--interactive` to `new` or `edit` and any
omitted field is prompted for. Flags you do pass become pre-filled defaults:
@@ -73,9 +79,12 @@ $ schedls new backup -i
$ schedls edit backup -i
```
Interactive mode is line-based (no external editor or pager), requires a
terminal, and cannot be combined with `--json`. The collected values are shown
in the usual preview and still require confirmation before anything is written.
For `new`, the wizard asks for the scope (user or system) unless `--user` or
`--system` was given; a system cron job then asks which user it should run as
(default `root`). Interactive mode is line-based (no external editor or pager),
requires a terminal, and cannot be combined with `--json`. The collected values
are shown in the usual preview and still require confirmation before anything
is written.
Inspect, change, disable, remove: