feat: update sign command to support signing multiple .zst files

This commit is contained in:
2026-02-28 15:19:17 -06:00
parent 1f22d22887
commit d954ca8660
3 changed files with 101 additions and 28 deletions
+8 -6
View File
@@ -1591,12 +1591,14 @@ pub fn run(cli: Cli) -> Result<()> {
let db_path = config.db_dir.join("packages.db");
db::list_packages(&db_path)?;
}
Commands::Sign { file } => {
let sig_path = signing::sign_zst_file_detached(&cli.rootfs, &file)?;
ui::success(format!(
"Created detached signature: {}",
sig_path.display()
));
Commands::Sign { files } => {
let sig_paths = signing::sign_zst_files_detached(&cli.rootfs, &files)?;
for sig_path in sig_paths {
ui::success(format!(
"Created detached signature: {}",
sig_path.display()
));
}
}
Commands::Repo { command } => match command {
RepoCommands::Create { dir } => {