pub async fn cmd_diff(
client: &VtaClient,
name: &str,
context: Option<&str>,
file: PathBuf,
) -> Result<(), Box<dyn Error>>Expand description
pnm did-templates diff <name> --file <path> [--context X] — compare a
local template file against what the VTA has stored. Walks the parsed JSON
in parallel and reports every path whose value differs.
Exits non-zero when the two templates differ, so the command plugs into scripts (“is my local copy in sync?”). No changes → exit 0, silent stdout.