template-syncer
Version:
智能模板同步工具 - 让你的项目与模板仓库保持同步,支持智能合并、差异对比和交互式更新
17 lines (16 loc) • 718 B
TypeScript
import type { FileChange, Recommendation } from '../types';
export declare const prompts: {
inputRepo(): Promise<string>;
selectBranch(branches: string[]): Promise<string>;
selectAction(): Promise<"category" | "individual" | "all" | "cancel">;
selectByCategory(changes: FileChange[]): Promise<FileChange[]>;
selectIndividually(changes: FileChange[]): Promise<FileChange[]>;
confirm(message: string, defaultValue?: boolean): Promise<boolean>;
selectRecommendations(recommendations: Recommendation[]): Promise<Recommendation[]>;
initConfig(): Promise<{
repo: string;
branch: string;
ignore: string[];
}>;
showChangeSummary(changes: FileChange[]): void;
};