Skip to content
jc-rs
GitHub

crontab

--crontabv1.9.0

Converts `crontab` command and file output to JSON

filecommand
$ crontab | jc-rs --crontab

A real pair

From the reference corpus (generic/crontab-no-normal-entries.json). The left pane is the input the fixture ships; the right pane is the corpus's expected JSON. CI compares jc-rs with it field by field under the published differential. Hover a value to see where it came from.

crontabgeneric
#this is a test for the jc module
@daily /bin/sh do_the_thing
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
{
  "variables": [],
  "schedule": [
    {
      "occurrence": "daily",
      "command": "/bin/sh do_the_thing"
    }
  ]
}

Fixture coverage

3/3oracle-valid pairs match under the published structural JSON comparison

Magic syntax

jc-rs crontabjc-rs runs the command itself and parses what it prints. Recognised for: `crontab`

Source: crates/jc-rs-parsers/src/misc/crontab.rs. jc-rs targets the schemas defined by the original Python tool. Fixture coverage above is the measured evidence for this parser; test the inputs your pipeline depends on. Compare