1 parent
fdbc9a9d1b
commit
024f244f52
10 files changed
+910
-3
No files matched your search
@@ -51,6 +51,14 @@ enum Action {
|
||||
output: PathBuf,
|
||||
},
|
||||
Schema,
|
||||
Certificate {
|
||||
#[arg(long)]
|
||||
project: PathBuf,
|
||||
#[arg(long, conflicts_with = "thumbprint")]
|
||||
create: bool,
|
||||
#[arg(long)]
|
||||
thumbprint: Option<String>,
|
||||
},
|
||||
}
|
||||
#[derive(Subcommand)]
|
||||
enum PlanAction {
|
||||
@@ -105,6 +113,22 @@ fn run(action: Action, cancel: &AtomicBool) -> Result<i32> {
|
||||
&std::path::absolute(output)?,
|
||||
)?)?,
|
||||
Action::Schema => print(&schemars::schema_for!(package_domain::Project))?,
|
||||
Action::Certificate {
|
||||
project,
|
||||
create,
|
||||
thumbprint,
|
||||
} => print(&infra::configure_developer_certificate(
|
||||
&project,
|
||||
if create {
|
||||
"create"
|
||||
} else if thumbprint.is_some() {
|
||||
"select"
|
||||
} else {
|
||||
"list"
|
||||
},
|
||||
thumbprint.as_deref(),
|
||||
cancel,
|
||||
)?)?,
|
||||
}
|
||||
Ok(0)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user