feat: improve installing from repositories
Signed-off-by: sisungo <[email protected]>
This commit is contained in:
+3
-1
@@ -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(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user