@swell/cli
Version:
Swell's command line interface/utility
58 lines (57 loc) • 1.94 kB
TypeScript
import { CreateAppCommand } from '../../create-app-command.js';
import { HelpMeta } from '../../help/types.js';
/**
* Shared helpMeta for app creation commands (create app, app init).
* Defines the APP TYPES section and type-specific flags.
*/
export declare const appHelpMetaBase: Omit<HelpMeta, 'usageDirect'>;
export default class CreateApp extends CreateAppCommand {
static args: {
id: import("@oclif/core/lib/interfaces/parser.js").Arg<string, Record<string, unknown>>;
};
static description: string;
static examples: string[];
static helpMeta: HelpMeta;
static flags: any;
appType: string;
createSwellConfig({ allowOverwrite, inputId, inputStorefrontApp, inputType, inputName, inputVersion, inputDescription, inputFrontend, inputIntegrationType, inputIntegrationId, inputYes, nestedPath, }: {
allowOverwrite?: boolean;
inputDescription?: string;
inputFrontend?: string;
inputId?: string;
inputIntegrationId?: string;
inputIntegrationType?: string;
inputName?: string;
inputStorefrontApp?: string;
inputType?: string;
inputVersion?: string;
inputYes?: boolean;
nestedPath?: boolean;
}): Promise<{
appId: string;
config: any;
installedStorefrontApp: any;
swellConfigJson: {
extensions?: any[] | undefined;
theme: {
storefront: {
app: string;
};
};
description: string;
id: string;
name: string;
type: string;
version: string;
} | {
extensions?: any[] | undefined;
permissions: never[];
description: string;
id: string;
name: string;
type: string;
version: string;
};
} | undefined>;
run(): Promise<void>;
}