Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BinCommand

Hierarchy

Properties

Methods

Properties

cwd

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

json

json: boolean = Option.Boolean(`--json`, false, {description: `Format the output as an NDJSON stream`,})

name

name: undefined | string = Option.String({required: false})

verbose

verbose: boolean = Option.Boolean(`-v,--verbose`, false, {description: `Print both the binary name and the locator of the package that provides the binary`,})

Static paths

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

Static usage

usage: Usage = Command.Usage({description: `get the path to a binary script`,details: `When used without arguments, this command will print the list of all the binaries available in the current workspace. Adding the \`-v,--verbose\` flag will cause the output to contain both the binary name and the locator of the package that provides the binary.When an argument is specified, this command will just print the path to the binary on the standard output and exit. Note that the reported path may be stored within a zip archive.`,examples: [[`List all the available binaries`,`$0 bin`,], [`Print the path to a specific binary`,`$0 bin eslint`,]],})

Methods

execute

  • execute(): Promise<0 | 1>

Generated using TypeDoc