UNPKG

@sprucelabs/spruce-cli

Version:

Command line interface for building Spruce skills.

74 lines (73 loc) 2.15 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; fields: { description: { label: string; type: "text"; hint: "Describe a bit more here"; options: undefined; }; nameCamel: { label: "Camel case name"; type: "text"; isRequired: true; hint: "camelCase version of the name"; options: undefined; }; nameKebab: { label: "Kebab case name"; type: "text"; hint: "kebab-case of the name"; options: undefined; }; nameReadable: { label: string; hint: string; type: "text"; isRequired: true; options: undefined; }; }; }; invocationMessage: string; readonly commandAliases: string[]; execute(options: Options): Promise<FeatureActionResponse>; } declare const schema: { id: string; fields: { description: { label: string; type: "text"; hint: "Describe a bit more here"; options: undefined; }; nameCamel: { label: "Camel case name"; type: "text"; isRequired: true; hint: "camelCase version of the name"; options: undefined; }; nameKebab: { label: "Kebab case name"; type: "text"; hint: "kebab-case of the name"; options: undefined; }; nameReadable: { label: string; hint: string; type: "text"; isRequired: true; options: undefined; }; }; }; type OptionsSchema = typeof schema; type Options = SchemaValues<OptionsSchema>; export {};