Skip to content

craft-hub / executeCommand

Function: executeCommand()

executeCommand(store, project, capability, onOutput?, persistedInvocation?): Promise<RunHandle>

Defined in: packages/craft-hub/src/executor.ts:32

Execute only a structured command capability after project trust is established.

Parameters

store

CraftHubStore

project

ProjectRecord

capability

CommandCapability

onOutput?

(event) => void

persistedInvocation?

CommandInvocation = capability.invocation

Returns

Promise<RunHandle>

Released under the MIT License.