mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 14:29:45 +00:00
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:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user