Skip to main content

Crate snomed_cli

Crate snomed_cli 

Source
Expand description

Command-line toolkit over the snomed workspace crates: SCTID validation, release loading, concept lookup, ECL queries.

This crate is deliberately a thin presentation layer — every subcommand is a few lines of formatting around calls into snomed-core, snomed-rf2, snomed-store, and snomed-ecl. New domain logic belongs in those crates, not here (see AGENTS/cli-engineer.md).

run is the single entry point, returning the formatted output as a String (rather than printing directly) so subcommands are unit- and integration-testable without spawning the compiled binary.

Functions§

run
Dispatches on args[0] (the subcommand name) and returns the formatted output. args excludes the program name (pass std::env::args().skip(1) collected into a Vec, or an equivalent slice in tests).