UNPKG

@sprucelabs/spruce-cli

Version:

Command line interface for building Spruce skills.

56 lines (55 loc) 1.48 kB
import { SchemaValues } from '@sprucelabs/schema'; import AbstractAction from '../../AbstractAction'; import { FeatureActionResponse } from '../../features.types'; export default class CreateAction extends AbstractAction<OptionsSchema> { optionsSchema: OptionsSchema; commandAliases: string[]; invocationMessage: string; execute(options: SchemaValues<OptionsSchema>): Promise<FeatureActionResponse>; } declare const optionsSchema: { id: string; description: string; fields: { viewType: { type: "select"; label: string; isRequired: true; options: { choices: { value: string; label: string; }[]; }; }; isRoot: { type: "boolean"; label: string; }; nameReadable: { label: string; isRequired: false; type: "text"; hint: string; }; namePascal: { isRequired: false; type: "text"; label: string; hint: string; }; viewModel: { type: "select"; label: string; hint: string; options: { choices: { value: string; label: string; }[]; }; }; }; }; type OptionsSchema = typeof optionsSchema; export {};