Skip to main content

Module helpers

Module helpers 

Source
Expand description

Cross-tool helpers.

Previously duplicated in synthesist/store.rs and lattice/store.rs; consolidated here so a fix (or the addition of a new helper) lands in one place.

Functions§

json_out
Render a JSON value as a single line on stdout. Every synthesist and lattice command emits JSON by convention; routing through this helper keeps the output shape consistent.
parse_tree_spec
Split a tree/spec identifier into its two parts. Prescriptive error on malformed input so CLI users see the expected shape.
today
Today’s date as YYYY-MM-DD in local time. Used by commands that default a date / event_date prop to “today”.