feat: add package promote command for cross-registry promotion

Allows promoting a package version from one registry to another by
fetching package info from the source and re-signing/publishing each
s9pk variant to the destination.
This commit is contained in:
Aiden McClelland
2026-03-31 20:51:22 -06:00
parent 3e0bbe47ad
commit 48f50e3c6c
3 changed files with 186 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ pub mod add;
pub mod category;
pub mod get;
pub mod index;
pub mod promote;
pub mod signer;
pub fn package_api<C: Context>() -> ParentHandler<C> {
@@ -98,6 +99,12 @@ pub fn package_api<C: Context>() -> ParentHandler<C> {
.no_display()
.with_about("about.download-s9pk"),
)
.subcommand(
"promote",
from_fn_async(promote::cli_promote)
.no_display()
.with_about("about.promote-package-registry"),
)
.subcommand(
"category",
category::category_api::<C>().with_about("about.update-categories-registry"),