|
|
@ -57,13 +57,21 @@ fn main() {
|
|
|
|
if !repository {
|
|
|
|
if !repository {
|
|
|
|
crash!(
|
|
|
|
crash!(
|
|
|
|
AppExitCode::BuildInWorkspace,
|
|
|
|
AppExitCode::BuildInWorkspace,
|
|
|
|
"Cannot build packages in workspace mode"
|
|
|
|
"Cannot generate repository in workspace mode"
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
repository::generate(verbose);
|
|
|
|
repository::generate(verbose);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Operation::Config => operations::config(verbose),
|
|
|
|
Operation::Config => operations::config(verbose),
|
|
|
|
Operation::Prune => operations::prune(verbose),
|
|
|
|
Operation::Prune => {
|
|
|
|
|
|
|
|
if !repository {
|
|
|
|
|
|
|
|
crash!(
|
|
|
|
|
|
|
|
AppExitCode::BuildInWorkspace,
|
|
|
|
|
|
|
|
"Cannot prune packages in workspace mode"
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
operations::prune(verbose)
|
|
|
|
|
|
|
|
},
|
|
|
|
Operation::Clean => operations::clean(verbose),
|
|
|
|
Operation::Clean => operations::clean(verbose),
|
|
|
|
Operation::Info => operations::info(verbose),
|
|
|
|
Operation::Info => operations::info(verbose),
|
|
|
|
}
|
|
|
|
}
|
|
|
|