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