@sprucelabs/spruce-cli
Version:
Command line interface for building Spruce skills.
78 lines (77 loc) • 2.01 kB
TypeScript
import { SchemaValues } from '@sprucelabs/schema';
import AbstractAction from '../../AbstractAction';
declare const optionsSchema: {
id: string;
description: string;
fields: {
nameReadable: {
label: string;
hint: string;
type: "text";
isRequired: true;
};
nameReadablePlural: {
label: string;
hint: string;
type: "text";
isRequired: true;
};
namePascal: {
isRequired: true;
type: "text";
label: string;
hint: string;
};
namePascalPlural: {
type: "text";
label: string;
hint: string;
};
nameSnakePlural: {
type: "text";
label: string;
hint: string;
};
};
};
type OptionsSchema = typeof optionsSchema;
type Options = SchemaValues<OptionsSchema>;
export default class CreateAction extends AbstractAction<OptionsSchema> {
optionsSchema: {
id: string;
description: string;
fields: {
nameReadable: {
label: string;
hint: string;
type: "text";
isRequired: true;
};
nameReadablePlural: {
label: string;
hint: string;
type: "text";
isRequired: true;
};
namePascal: {
isRequired: true;
type: "text";
label: string;
hint: string;
};
namePascalPlural: {
type: "text";
label: string;
hint: string;
};
nameSnakePlural: {
type: "text";
label: string;
hint: string;
};
};
};
invocationMessage: string;
execute(options: Options): Promise<any>;
}
export {};