in src/main.rs [372:404]
fn _main(log: &slog::Logger, args: &Vec<String>) -> Result<(), Box<dyn error::Error>> {
info!(log, "Starting: {}, {}", args[1], args[2]);
let code_path = PathBuf::from(&args[1]);
if !code_path.is_absolute() {
return Err(
ArgumentError(format!(
"Code path needs to be absolute. Instead got: {}",
args[1]
))
.into(),
);
}
if !code_path.exists() {
return Err(ArgumentError(format!("Code path doesn't seem to exist: {}", args[1])).into());
}
let silent = args[2].clone();
if silent != "true" && silent != "false" {
return Err(
ArgumentError(format!(
"Silent needs to be true or false. Instead got: {}",
silent
))
.into(),
);
}
update(log, &code_path, "_", silent == "true")
}