UNPKG

@sprucelabs/spruce-cli

Version:

Command line interface for building Spruce skills.

57 lines (56 loc) 1.52 kB
import { SchemaValues } from '@sprucelabs/schema'; import AbstractAction from '../../AbstractAction'; import { FeatureActionResponse } from '../../features.types'; export default class CreatePluginAction extends AbstractAction<OptionsSchema> { optionsSchema: { id: string; fields: { nameReadable: { label: string; type: "text"; hint: string; isRequired: true; }; nameCamel: { isRequired: false; type: "text"; label: string; hint: string; }; namePascal: { isRequired: false; type: "text"; label: string; hint: string; }; }; }; invocationMessage: string; commandAliases: string[]; execute(options: SchemaValues<OptionsSchema>): Promise<FeatureActionResponse>; } declare const optionsSchema: { id: string; fields: { nameReadable: { label: string; type: "text"; hint: string; isRequired: true; }; nameCamel: { isRequired: false; type: "text"; label: string; hint: string; }; namePascal: { isRequired: false; type: "text"; label: string; hint: string; }; }; }; type OptionsSchema = typeof optionsSchema; export {};