vdev/commands/build/component_docs/mod.rs
1use anyhow::Result;
2use clap::Args;
3use std::path::PathBuf;
4
5mod runner;
6mod schema;
7
8/// Build the component documentation by parsing the JSON configuration schema and generating cue files.
9#[derive(Args, Debug)]
10#[command()]
11pub struct Cli {
12 /// The path to the configuration schema JSON file
13 configuration_schema: PathBuf,
14}
15
16impl Cli {
17 pub fn exec(self) -> Result<()> {
18 runner::run(&self.configuration_schema)
19 }
20}