feat: add development certificate signing

Closes #4
This commit is contained in:
jychoi4 committed 2026-11-04 16:14:00 +09:00
1 parent fdbc9a9d1b
commit 024f244f52
10 files changed
+910 -3

No files matched your search

+24
View File
@@ -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)
}