UNPKG

rucken

Version:

Console tools and scripts for nx and not only that I (EndyKaufman) use to automate the workflow and speed up the development process

41 lines (40 loc) 1.22 kB
import { UtilsService } from '../utils/utils.service'; export declare class CopyPasteService { private readonly utilsService; static title: string; private logger; constructor(utilsService: UtilsService); setLogger(command: string): void; copyPasteHandler({ path, find, findPlural, replace, replacePlural, destPath, extensions, cases, globRules, replaceEnvs, }: { path?: string; find: string; findPlural?: string; replace: string; replacePlural?: string; destPath?: string; extensions: string[]; cases: string[]; globRules?: string; replaceEnvs?: string; }): Promise<void>; private process; private getDestContent; private getDestFile; private collectFilepaths; replace({ text, find, findPlural, replace, replacePlural, cases, mode, }: { text: string; find: string; findPlural: string; replace: string; replacePlural: string; cases: string[]; mode: 'content' | 'filepath'; }): { newText: string; resultReplacedTexts: { from: string; to: string; toMd5: string; }[]; }; }