@sprucelabs/spruce-cli
Version:
Command line interface for building Spruce skills.
38 lines (37 loc) • 1.22 kB
TypeScript
import { SchemaValues } from '@sprucelabs/schema';
import AbstractAction from '../../AbstractAction';
import { FeatureActionResponse } from '../../features.types';
export default class InstallFeatureAction extends AbstractAction<OptionsSchema> {
optionsSchema: {
id: string;
fields: {
code: {
type: "select";
label: string;
options: {
choices: import("@sprucelabs/spruce-core-schemas").SpruceSchemas.Spruce.v2020_07_22.Choice[];
};
};
};
};
invocationMessage: string;
commandAliases: string[];
execute(options: InstallFeatureActionOptions): Promise<FeatureActionResponse>;
private promptForFeature;
private buildFeatureChoices;
}
declare const optionsSchema: {
id: string;
fields: {
code: {
type: "select";
label: string;
options: {
choices: import("@sprucelabs/spruce-core-schemas").SpruceSchemas.Spruce.v2020_07_22.Choice[];
};
};
};
};
type OptionsSchema = typeof optionsSchema;
export type InstallFeatureActionOptions = SchemaValues<OptionsSchema>;
export {};