UNPKG

@sprucelabs/spruce-cli

Version:

Command line interface for building Spruce skills.

62 lines (61 loc) 1.89 kB
import { SchemaValues } from '@sprucelabs/schema'; import AbstractAction from '../../AbstractAction'; import { FeatureActionResponse } from '../../features.types'; export default class CreateAction extends AbstractAction<OptionsSchema> { optionsSchema: { id: string; name: string; description: string; fields: { destination: { type: "text"; defaultValue: "."; options: undefined; }; name: { label: "What's the name of your skill?"; type: "text"; isRequired: true; hint: "This marketing focused, like \"8-bit Stories\" or \"Adventures\"."; options: undefined; }; description: { label: "How would you describe your skill?"; type: "text"; isRequired: true; options: undefined; }; }; }; commandAliases: string[]; invocationMessage: string; execute(options: Options): Promise<FeatureActionResponse>; } declare const optionsSchema: { id: string; name: string; description: string; fields: { destination: { type: "text"; defaultValue: "."; options: undefined; }; name: { label: "What's the name of your skill?"; type: "text"; isRequired: true; hint: "This marketing focused, like \"8-bit Stories\" or \"Adventures\"."; options: undefined; }; description: { label: "How would you describe your skill?"; type: "text"; isRequired: true; options: undefined; }; }; }; type OptionsSchema = typeof optionsSchema; type Options = SchemaValues<OptionsSchema>; export {};