Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ExecCommand

Hierarchy

Properties

Methods

Properties

args

args: string[] = Option.Proxy()

commandName

commandName: string = Option.String()

cwd

cwd: undefined | string = Option.String(`--cwd`, {hidden: true})

Static paths

paths: string[][] = [[`exec`],]

Static usage

usage: Usage = Command.Usage({description: `execute a shell script`,details: `This command simply executes a shell script within the context of the root directory of the active workspace using the portable shell.It also makes sure to call it in a way that's compatible with the current project (for example, on PnP projects the environment will be setup in such a way that PnP will be correctly injected into the environment).`,examples: [[`Execute a single shell command`,`$0 exec echo Hello World`,], [`Execute a shell script`,`$0 exec "tsc & babel src --out-dir lib"`,]],})

Methods

execute

  • execute(): Promise<number>

Generated using TypeDoc