/** * @author pontx * @description pontx init 命令实现 - 初始化生成 pontx.config.ts 配置文件 */ import type { Logger } from "../../logger/types.d.ts"; /** 运行时类型 */ export type RuntimeType = "nodejs" | "browser"; export interface InitOptions { /** 远程数据源 URL */ url?: string; /** 数据源名称 */ name?: string; /** 本地数据源路径 */ localPath?: string; /** 输出目录,默认 src/apis */ outDir?: string; /** 运行时环境,默认 nodejs */ runtime?: RuntimeType; /** 跳过安装 SDK 依赖 */ skipInstall?: boolean; } /** * 执行 init 命令 */ export declare function initCommand(rootDir: string, options: InitOptions, logger: Logger): Promise;