UNPKG

@sprucelabs/spruce-cli

Version:

Command line interface for building Spruce skills.

49 lines (43 loc) 1.38 kB
import { SchemaRegistry } from '@sprucelabs/schema' import { SpruceErrors } from '../errors.types' const executingCommandFailedSchema: SpruceErrors.SpruceCli.ExecutingCommandFailedSchema = { id: 'executingCommandFailed', namespace: 'SpruceCli', name: 'Executing command failed', description: 'The command that was being executed failed', fields: { /** The command being run. */ 'cmd': { label: 'The command being run', type: 'text', options: undefined }, /** Args. */ 'args': { label: 'Args', type: 'text', isArray: true, options: undefined }, /** Cwd. */ 'cwd': { label: 'Cwd', type: 'text', options: undefined }, /** Stdout. */ 'stdout': { label: 'Stdout', type: 'text', options: undefined }, /** stderr. */ 'stderr': { label: 'stderr', type: 'text', options: undefined }, } } SchemaRegistry.getInstance().trackSchema(executingCommandFailedSchema) export default executingCommandFailedSchema