feat: support for pkgfile (#1306)

This commit is contained in:
Rafael Scalet
2025-09-10 08:31:27 -03:00
committed by GitHub
parent 0926bd2f6c
commit b662fae11e
2 changed files with 16 additions and 0 deletions

View File

@@ -683,6 +683,15 @@ pub fn run_pacstall(ctx: &ExecutionContext) -> Result<()> {
upgrade_cmd.arg("-Up").status_checked()
}
pub fn run_pkgfile(ctx: &ExecutionContext) -> Result<()> {
let sudo = ctx.require_sudo()?;
let pkgfile = require("pkgfile")?;
print_separator("pkgfile");
sudo.execute(ctx, pkgfile)?.arg("--update").status_checked()
}
pub fn run_packer_nu(ctx: &ExecutionContext) -> Result<()> {
let nu = require("nu")?;
let packer_home = HOME_DIR.join(".local/share/nushell/packer");