tessera-command 0.4.17

The tesserax command: opens a recipe, then serves, fetches or runs tasks
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::models::{examples, splice, table};
use std::path::Path;

#[test]
fn readme_models_current() {
    let root = Path::new(env!("CARGO_MANIFEST_DIR")).join("../..");
    let got = std::fs::read_to_string(root.join("README.md")).unwrap();
    let want = splice(&got, &table(&examples(&root).unwrap())).unwrap();
    let fix = "run `cargo run -p tessera-cli -- models --readme README.md`";
    assert!(got == want, "README.md is stale: {fix}");
}