helios-sof 0.2.3

This crate provides a complete implementation of the SQL-on-FHIR specification for Rust, enabling the transformation of FHIR resources into tabular data using declarative ViewDefinitions. It supports all major FHIR versions (R4, R4B, R5, R6) through a version-agnostic abstraction layer.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! `sof-cli --version` identifies the binary (#992).

use std::process::Command;

#[test]
fn version_flag_prints_version_and_exits_zero() {
    let output = Command::new(env!("CARGO_BIN_EXE_sof-cli"))
        .arg("--version")
        .output()
        .expect("run sof-cli");
    assert!(output.status.success(), "{:?}", output.status);
    let stdout = String::from_utf8_lossy(&output.stdout);
    assert_eq!(
        stdout.trim_end(),
        concat!("sof-cli ", env!("CARGO_PKG_VERSION"))
    );
}