UNPKG

@swell/cli

Version:

Swell's command line interface/utility

17 lines (16 loc) 733 B
import { AppCommand } from './app-command.js'; import { ConfigType } from './lib/apps/index.js'; import { CreateFileParams } from './lib/create/index.js'; /** * A base class for Swell CLI Create commands for file and input handling. * * This class extends the `AppCommand` class and adds: * * - createType: Type of Config to generate file path * - createFile: File creation, including general prompts */ export declare abstract class CreateConfigCommand extends AppCommand { protected createType: '' | ConfigType; protected createFile({ extension, fileBody, fileName }: CreateFileParams, overwrite: boolean, shouldConfirm?: boolean): Promise<boolean | undefined>; protected getCollectionOptions(): Promise<any>; }