1
//! conjure-oxide print-info-schema subcommand
2

            
3
use conjure_cp::context::Context;
4
use schemars::schema_for;
5

            
6
/// Prints the schema for the JSON info file.
7
pub 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
}