difftreelog
feat make CLI compatible with original jsonnet
in: master
1 file changed
cmds/jrsonnet/src/main.rsdiffbeforeafterboth71struct Opts {71struct Opts {72 #[clap(long, about = "Disable global std variable")]72 #[clap(long, about = "Disable global std variable")]73 no_stdlib: bool,73 no_stdlib: bool,74 #[clap(long, about = "Add external string")]74 #[clap(long, about = "Add external string", number_of_values = 1)]75 ext_str: Vec<ExtStr>,75 ext_str: Vec<ExtStr>,76 #[clap(long, about = "Add external string from code")]76 #[clap(long, about = "Add external string from code", number_of_values = 1)]77 ext_code: Vec<ExtStr>,77 ext_code: Vec<ExtStr>,78 #[clap(long, about = "Add TLA")]78 #[clap(long, about = "Add TLA", number_of_values = 1)]79 tla_str: Vec<ExtStr>,79 tla_str: Vec<ExtStr>,80 #[clap(long, about = "Add TLA from code")]80 #[clap(long, about = "Add TLA from code", number_of_values = 1)]81 tla_code: Vec<ExtStr>,81 tla_code: Vec<ExtStr>,82 #[clap(long, short = "f", default_value = "json", possible_values = &["none", "json", "yaml"], about = "Output format, wraps resulting value to corresponding std.manifest call")]82 #[clap(long, short = "f", default_value = "json", possible_values = &["none", "json", "yaml"], about = "Output format, wraps resulting value to corresponding std.manifest call")]83 format: Format,83 format: Format,109 )]109 )]110 line_padding: usize,110 line_padding: usize,111111112 #[clap(about = "File to compile", index = 1)]112 #[clap(about = "File to compile")]113 input: String,113 input: String,114}114}115115