vault-vars 0.0.2

A tool to fetch secrets from Hashicorp Vault and inject them into variable files for hashicorp terraform
Documentation
use clap::Parser;

/// Simple program to greet a person
#[derive(Parser, Debug)]
#[command(author, version, about, long_about = None)]
struct Config {
    /// File to read into vault-vars
    /// Supports wildcards and can be defined multiple times
    /// All files will be merged
    /// Use /dev/stdin or `-` to read from stdin
    #[arg(short = 'i', long, env = "VAULT_VARS_INPUT", num_args(0..))]
    input: Vec<String>,

    /// File to read into vault-vars
    /// Use /dev/stdout or `-` to write to stdout
    #[arg(
        short = 'o',
        long,
        env = "VAULT_VARS_OUTPUT",
        default_value = "vv.auto.tfvars.json"
    )]
    output: String,
}

fn main() {
    let args = Config::parse();
    vault_vars::merge_yaml_files(&args.input, &args.output).expect("The app failed!");
}