MCPcopy
hub / github.com/infinitered/gluegun / GluegunSystem

Interface GluegunSystem

src/toolbox/system-types.ts:1–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1export interface GluegunSystem {
2 /**
3 * Executes a command via execa.
4 */
5 exec(command: string, options?: any): Promise<any>
6 /**
7 * Runs a command and returns stdout as a trimmed string.
8 */
9 run(command: string, options?: any): Promise<string>
10 /**
11 * Spawns a command via crosspawn.
12 */
13 spawn(command: string, options?: any): Promise<any>
14 /**
15 * Uses node-which to find out where the command lines.
16 */
17 which(command: string): string | void
18 /**
19 * Returns a timer function that starts from this moment. Calling
20 * this function will return the number of milliseconds from when
21 * it was started.
22 */
23 startTimer(): GluegunTimer
24}
25
26/**
27 * Returns the number of milliseconds from when the timer started.

Callers 18

cli.integration.tsFile · 0.80
builder.test.tsFile · 0.80
cli.integration.tsFile · 0.80
runFunction · 0.80
new.test.tsFile · 0.80
addFunction · 0.80
cli.integration.tsFile · 0.80
new.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…