Orrery CLI
Command-line interface for the Orrery diagram language.
Installation
Install from source:
Or from crates.io:
Optional Features
graphviz(enabled by default) — Enables the Graphviz-backed layout engine for component diagrams. Requires thedotcommand-line tool to be installed (see https://graphviz.org/download/).
# Install without the Graphviz layout engine
# Or from crates.io
Usage
Basic Example
# Render a diagram to SVG
# With custom configuration
# With debug logging
Command-Line Options
Arguments:
<INPUT> Path to the input Orrery file
Options:
-o, --output <OUTPUT> Path to output SVG file [default: out.svg]
-c, --config <CONFIG> Path to configuration file (TOML)
--log-level <LOG_LEVEL> Log level (off, error, warn, info, debug, trace) [default: info]
-h, --help Print help
-V, --version Print version
Configuration
The CLI searches for configuration files in this order:
- Path specified with
--configflag orrery/config.tomlin current directory- Platform-specific config directory:
- Linux:
~/.config/orrery/config.toml - macOS:
~/Library/Application Support/com.orrery.orrery/config.toml - Windows:
%APPDATA%\orrery\orrery\config.toml
- Linux:
Example Configuration
[]
= "sugiyama"
= "basic"
[]
= "#ffffff"
[]
= "#000000"
= 2.0
= "solid"
Example Diagrams
See the examples directory for sample .orr files.
Process an example:
License
Licensed under either of Apache License 2.0 or MIT license at your option.