import { sudo } from "https://deno.land/x/ayonli_jsext@v0.9.72/esm/cli.js";
Executes a command with elevated privileges using sudo
(or UAC in Windows).
Examples
Example 1
Example 1
import { sudo } from "@ayonli/jsext/cli";
await sudo("apt", ["install", "build-essential"]);