MCPcopy
hub / github.com/open-cli-tools/concurrently / CommandParser

Interface CommandParser

lib/command-parser/command-parser.d.ts:10–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8 * the prefix color of a command brighter, or maybe even prefixing each command with `time(1)`.
9 */
10export interface CommandParser {
11 /**
12 * Parses `commandInfo` and returns one or more `CommandInfo`s.
13 *
14 * Returning multiple `CommandInfo` is used when there are multiple possibilities of commands to
15 * run given the original input.
16 * An example of this is when the command contains a wildcard and it must be expanded into all
17 * viable options so that the consumer can decide which ones to run.
18 */
19 parse: (commandInfo: CommandInfo) => CommandInfo | CommandInfo[];
20}

Callers

nothing calls this directly

Implementers 3

ExpandShortcutlib/command-parser/expand-shortcut.ts
ExpandArgumentslib/command-parser/expand-arguments.ts
ExpandWildcardlib/command-parser/expand-wildcard.ts

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…