import { execFileSync } from "node:child_process"; import * as p from "@clack/prompts"; import { readState, restow } from "./stow.js"; export async function update() { p.intro("Hyprland dotfiles update"); execFileSync("sudo", ["pacman", "-Syu"], { stdio: "inherit" }); execFileSync("yay", ["-Syu"], { stdio: "inherit" }); restow(readState().dirs); p.outro("Done."); }