import { sudo } from "https://deno.land/x/ayonli_jsext@v0.9.72/cli.ts";
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"]);
Returns
Promise<CommandResult>