Expand description
Wyvern CLI library — load → validate → run → emit pipeline.
main.rs is a thin binary wrapper around pipeline::run_from_loaded.
Structs§
- CliArgs
- Parsed CLI invocation: host options + remaining positional/stdin args.
Enums§
- Browsers
Error - CLI browsers subcommand failure.
- Emit
Error - Failure serializing stdout or structured stderr JSON at the CLI emit boundary.
- Load
Error - Failure while loading command input from argv or stdin.
- Pipeline
Error - Pipeline failure after load: stage stderr + exit, or emit-boundary serialize failure.
- Viewer
Spawn Error - Failure locating or launching
wyvern-viewer.
Functions§
- emit_
fatal_ internal - Emit static internal stderr JSON and exit with code 8 (REQ-0078).
- emit_
host_ error - Serialize a
wyvern_host::HostErroras stderr JSON (REQ-0073). - emit_
io_ error - Serialize an I/O load error as stderr JSON.
- emit_
parse_ error - Serialize a parse load error as stderr JSON.
- emit_
stdout - Serialize a successful
wyvern_schema::CommandResultfor stdout. - emit_
validation_ error - Serialize a validation/state error as stderr JSON.
- load_
command_ input - Load a command
Valuefrom positional args or stdin. - parse_
cli_ args - Split argv into host flags and positionals.
- resolve_
viewer_ bin - Resolve
wyvern-viewervia sibling →CARGO_BIN_EXE→WYVERN_VIEWER_BIN→PATH. - run_
browsers_ command - Run a
browserssubcommand; returns stdout text on success. - run_
from_ loaded - Validate
value, run the host, and return stdout JSON on success. - spawn_
embedded_ viewer - Spawn
wyvern-viewerfordialog_urlwith optional size hints. - usage_
message - Canonical usage text for invalid argv / empty stdin.