feat: improve installing from repositories

Signed-off-by: sisungo <[email protected]>
This commit is contained in:
2026-06-25 05:41:09 +08:00
parent e2ddb7b13b
commit 1c8aba9d56
10 changed files with 243 additions and 199 deletions
+3 -1
View File
@@ -2,6 +2,8 @@ use anyhow::anyhow;
use clap::Parser;
use packie::{PackieBuilder, package::PkgSpec};
use crate::common::format_size;
#[derive(Debug, Parser)]
pub struct Cli {
pkgspec: PkgSpec,
@@ -22,7 +24,7 @@ pub fn main(cli: Cli) -> anyhow::Result<()> {
println!("Package version: {}", found.pkg_manifest.version);
println!("Package architecture: {}", found.pkg_manifest.arch);
println!("Install package spec: {}", found.install_pkgspec);
println!("Installed size: {}", found.installed_size);
println!("Installed size: {}", format_size(found.installed_size));
Ok(())
}