@sprucelabs/spruce-cli
Version:
Command line interface for building Spruce skills.
48 lines (47 loc) • 1.29 kB
TypeScript
import { SchemaValues } from '@sprucelabs/schema';
import AbstractAction from '../../AbstractAction';
import { FeatureActionResponse } from '../../features.types';
declare const optionsSchema: {
id: string;
description: string;
fields: {
nameReadable: {
type: "text";
label: string;
isRequired: true;
hint: string;
};
nameCamel: {
type: "text";
label: string;
isRequired: true;
hint: string;
};
};
};
type OptionsSchema = typeof optionsSchema;
type Options = SchemaValues<OptionsSchema>;
export default class CreateLogTransportAction extends AbstractAction<OptionsSchema> {
optionsSchema: {
id: string;
description: string;
fields: {
nameReadable: {
type: "text";
label: string;
isRequired: true;
hint: string;
};
nameCamel: {
type: "text";
label: string;
isRequired: true;
hint: string;
};
};
};
invocationMessage: string;
commandAliases: string[];
execute(options: Options): Promise<FeatureActionResponse>;
}
export {};