Skip to main content

Built and signed on GitHub Actions

The `choco` module provides a simple way to execute choco commands.

This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
100%
Published
3 months ago (0.0.1)
Package root>command.ts
import { Command, type CommandArgs, type CommandOptions } from "jsr:@gnome/exec@^0.5.1"; import { pathFinder } from "jsr:/@gnome/exec@^0.5.1/path-finder"; pathFinder.set("choco", { name: "choco", windows: [ "${ALLUSERSPROFILE}\\chocolatey\\bin\\choco.exe", "${ChocolateyInstall}\\bin\\choco.exe", ], }); /** * Represents a choco command. */ export class ChocoCommand extends Command { /** * Creates a new instance of the `ttCliCommand` class. * @param args The command arguments. * @param options The command options. */ constructor(args?: CommandArgs, options?: CommandOptions) { super("choco", args, options); } } /** * Creates a new instance of the ChocoCommand class. * @param args - The command arguments. * @param options - The command options. * @returns An instance of the ChocoCommand class. */ export function choco(args?: CommandArgs, options?: CommandOptions): ChocoCommand { return new ChocoCommand(args, options); }