Skip to main content

Crate demesne_cli

Crate demesne_cli 

Source
Expand description

The demesne command line’s pure commands (validate, emit, help, version) over a Files source, shared by the native binary and the WASM build. Its errors are messages to print; the library crates (demesne-model, demesne-emit-sql, demesne-postgres and the emitters) return typed errors.

Structs§

OsFiles
Out
Output

Enums§

Loaded
A spec a command has loaded: written in one file, or in several compiled as one model.

Constants§

LIVE_COMMANDS
USAGE

Traits§

Files

Functions§

build_version
finish
go_read_error
load_spec
Reads, parses and validates the spec at path.
load_specs
Reads, parses and validates a spec in one file or in several.
need
Checks a command received at least n arguments.
run_pure
spec_args
Splits a command’s arguments into its spec files and the arguments after them.
strip_flag
strip_repeated_flag
Removes every --<name> <value> and --<name>=<value> from args, and returns the values in order with what is left.

Type Aliases§

R