The shrubbery command-line tool: parse, print, format and check Shrubbery notation
Dependencies
moon add marianoguerra/shrubbery-clishrubbery check src/*.shruberror[shrubbery::wrong_indentation]: this group is not indented like the ones around it
╭─[ greeting.shrub:3:2 ]
│
2 │ world
3 │ universe
│ ───┬────
│ ╰─ this column does not line up
│
├─ help: every group in a sequence starts at the same column
╰─shrubbery fmt --width 80 --write src/*.shrub| --style | grouping is carried by |
|---|---|
| flat | «», ; and , only — one line, and re-indenting it cannot change what it says |
| pretty | line breaks where they help, «» where they are needed (the default) |
| armoured | «» everywhere, but laid out over lines |
| multiline | line breaks in preference to «» |
Install
Download zipThe shrubbery command-line tool: parse, print, format and check Shrubbery notation
Dependencies