conjure_oxide/
print_info_schema.rs

1//! conjure-oxide print-info-schema subcommand
2
3use conjure_cp::context::Context;
4use schemars::schema_for;
5
6/// Prints the schema for the JSON info file.
7pub fn run_print_info_schema_command() -> anyhow::Result<()> {
8    let schema = schema_for!(Context);
9    println!("{}", serde_json::to_string_pretty(&schema).unwrap());
10    Ok(())
11}