Skip to main content

Built and signed on GitHub Actions

The `cmd-cli` module provides a simple way to execute windows command line scripts or files.

It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
88%
Published
5 months ago (0.0.0)
class CmdCliCommand
extends ShellCommand

Represents a windows cmd cli command executed using the cmd executable.

Constructors

new
CmdCliCommand(
script: string,
options?: ShellCommandOptions,
)

Creates a new instance of the cmdCommand class.

Properties

readonly
ext: string

Gets the file extension associated with cmd scripts.

Methods

getScriptFile(): { file: string | undefined; generated: boolean; }
getShellArgs(
script: string,
isFile: boolean,
): string[]

Gets the cmd arguments for executing the cmd script.

Static Properties

Add Package

deno add jsr:@gnome/cmd-cli

Import symbol

import { CmdCliCommand } from "@gnome/cmd-cli";

---- OR ----

Import directly with a jsr specifier

import { CmdCliCommand } from "jsr:@gnome/cmd-cli";

Add Package

npx jsr add @gnome/cmd-cli

Import symbol

import { CmdCliCommand } from "@gnome/cmd-cli";

Add Package

yarn dlx jsr add @gnome/cmd-cli

Import symbol

import { CmdCliCommand } from "@gnome/cmd-cli";

Add Package

pnpm dlx jsr add @gnome/cmd-cli

Import symbol

import { CmdCliCommand } from "@gnome/cmd-cli";

Add Package

bunx jsr add @gnome/cmd-cli

Import symbol

import { CmdCliCommand } from "@gnome/cmd-cli";