@sprucelabs/spruce-cli
Version:
Command line interface for building Spruce skills.
45 lines (39 loc) • 1.66 kB
text/typescript
import { SchemaRegistry } from '@sprucelabs/schema'
import { SpruceSchemas } from '../../schemas.types'
const bootSkillOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.BootSkillOptionsSchema = {
id: 'bootSkillOptions',
version: 'v2020_07_22',
namespace: 'SpruceCli',
name: 'Boot skill action',
description: 'Boot your skill 💪',
fields: {
/** Run local. Will run using ts-node and typescript directly. Longer boot times */
'local': {
label: 'Run local',
type: 'boolean',
hint: 'Will run using ts-node and typescript directly. Longer boot times',
options: undefined
},
/** . */
'onData': {
type: 'raw',
options: {valueType: `(msg: string) => void`,}
},
/** . */
'onError': {
type: 'raw',
options: {valueType: `(msg: string) => void`,}
},
/** Wait until skill is booted. For testing. Returns immediately after executing test so the running tests can be managed programatically. */
'shouldReturnImmediately': {
label: 'Wait until skill is booted',
type: 'boolean',
isPrivate: true,
hint: 'For testing. Returns immediately after executing test so the running tests can be managed programatically.',
defaultValue: false,
options: undefined
},
}
}
SchemaRegistry.getInstance().trackSchema(bootSkillOptionsSchema)
export default bootSkillOptionsSchema