phase 3 - fix analysis problem
Some checks are pending
/ setup (push) Waiting to run

This commit is contained in:
Stuart Axelbrooke 2025-07-06 15:29:28 -07:00
parent 922c39f851
commit f065bb5262

View file

@ -569,8 +569,9 @@ async fn main() {
.arg(
Arg::new("partitions")
.help("Partition references to analyze")
.required(true)
.num_args(1..)
.required(false)
.num_args(0..)
.value_name("PARTITIONS")
)
.get_matches();
@ -579,6 +580,23 @@ async fn main() {
.cloned()
.collect();
// Validate arguments based on mode
match mode.as_str() {
"plan" | "mermaid" => {
if args.is_empty() {
error!("Error: Partition references are required for {} mode", mode);
eprintln!("Error: Partition references are required for {} mode", mode);
exit(1);
}
}
"import_test" => {
// No partition arguments needed for test mode
}
_ => {
// Unknown mode, will be handled later
}
}
// Get build event log configuration from environment variables
let build_event_log_uri = env::var("DATABUILD_BUILD_EVENT_LOG").ok();
let build_request_id = env::var("DATABUILD_BUILD_REQUEST_ID")