7CIFOEDQD725EPSFBZFFF3H6VJQTZELLSSVKAB35S2HYYNNYK2XAC
R55U4VIMWQT6WAKFBVW4ZOQZXRWZRFKF2KF7WZLQLTEZ2TSAOKEAC
UUNCAERSPFG56ZNDLR2AREKFB4EQDRKXNY2B43DXHDHJ5Y4GHCTQC
use clap::Parser;
use clap::{Parser, ValueEnum};
use serde_json::json;
/// Path to the kustomization file or directory
/// Output format #[arg(short, long, value_enum, default_value = "text")] format: Option<Format>,
/// Output format
#[arg(short, long, value_enum, default_value = "text")]
format: Option<Format>,
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, ValueEnum)]enum Format { /// One path per line Text, /// JSON Json,}
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, ValueEnum)]
enum Format {
/// One path per line
Text,
/// JSON
Json,
}
fn run(path: PathBuf, result: Vec<PathBuf>) {
fn run(path: PathBuf, result: &mut Vec<String>) {
println!("{}", canonical.display());
result.push(format!("{}", canonical.display()));
let mut branch = result.clone(); branch.push(canonical.clone()); run(next_path, branch);
let mut branch = result.clone();
branch.push(canonical.clone());
run(next_path, branch);
run(next_path, result);
let mut result = Vec::new();
run(args.path, Vec::new());
run(args.path, &mut result); match args.format { Some(Format::Json) => { let json = json!(result); println!("{}", json.to_string()); }, _ => { for r in result.iter() { println!("{r}"); } } }
run(args.path, &mut result);
match args.format {
Some(Format::Json) => {
let json = json!(result);
println!("{}", json.to_string());
},
_ => {
for r in result.iter() {
println!("{r}");
version = "0.1.0"
version = "0.2.0"
serde_json = "1.0.87"
"serde_json",
version = "0.2.136"
version = "0.2.137"
checksum = "55edcf6c0bb319052dea84732cf99db461780fd5e8d3eb46ab6ff312ab31f197"
checksum = "fc7fcc620a3bff7cdd7a365be3376c97191aeaccc2a603e600951e452615bf89"
][[package]]name = "serde_json"version = "1.0.87"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "6ce777b7b150d76b9cf60d28b55f5847135a003f7d7350c6be7a773508ce7d45"dependencies = [ "itoa", "ryu", "serde",
]
[[package]]
name = "serde_json"
version = "1.0.87"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6ce777b7b150d76b9cf60d28b55f5847135a003f7d7350c6be7a773508ce7d45"
dependencies = [
"itoa",
"ryu",
"serde",