kabu 0.7.1

CLI tool to enhance git worktree and jj workspace with automated setup
1
2
3
4
5
6
7
8
9
10
11
use crate::config::RawConfig;
use crate::error::Result;

/// Generate JSON Schema for configuration.
pub(crate) fn run() -> Result<()> {
    let schema = schemars::schema_for!(RawConfig);
    let json = serde_json::to_string_pretty(&schema)
        .map_err(|e| crate::error::Error::Internal(format!("Failed to serialize schema: {}", e)))?;
    println!("{json}");
    Ok(())
}