fnox 1.25.1

A flexible secret management tool supporting multiple providers and encryption methods
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::commands::Cli;
use crate::config::Config;
use crate::error::Result;

#[derive(clap::Args)]
#[command(hide = true)]
pub struct SchemaCommand {}

impl SchemaCommand {
    pub async fn run(&self, _cli: &Cli) -> Result<()> {
        let schema = schemars::schema_for!(Config);
        let json = serde_json::to_string_pretty(&schema)?;
        println!("{json}");
        Ok(())
    }
}