Skip to main content

Module cli

Module cli 

Source
Expand description

Command-line interface, gated behind the cli feature.

The CLI is a thin shell over crate::Renderer: it reads a JSON spec from a path, renders it into CSS, and writes the result to either a file (-o) or stdout.

Filesystem access goes through the FileOps trait so callers can substitute their own backend. The binary built when the cli feature is enabled wires in the default SystemFs implementation.

Structs§

Args
Render design tokens from a JSON spec into CSS.

Functions§

run
Execute the CLI with the given arguments, routing every filesystem call through files.