It's just a practice of attempting to parse crontab expressions with Rust
https://www.rust-lang.org/tools/install
https://docs.docker.com/engine/install
make build
make test
make run
docker-compose.yaml already provides example argument
cargo run "*/15 0 1,15 * 1-5 /usr/bin/find"
cargo fmt
cargo test
cargo build [--release]
target/[debug|release]/cron-parser "*/15 0 1,15 * 1-5 /usr/bin/find"
Apparently something like this 1,2-5/3,4,*
is also valid according to crontab.guru.
But this code is made with assumption that only one of ,
, -
, /
are used at once for each slot which colud be updated to reflect that later.