From 17d581f2fd24c6ec27924d933e855304d383099d Mon Sep 17 00:00:00 2001 From: Mqx <62719703+Mqxx@users.noreply.github.com> Date: Mon, 22 Jan 2024 23:19:04 +0100 Subject: [PATCH] Update cli.ts --- cli.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli.ts b/cli.ts index 423d3c3..1a499a9 100644 --- a/cli.ts +++ b/cli.ts @@ -1,5 +1,6 @@ import { parseArgs } from 'https://deno.land/std@0.212.0/cli/mod.ts'; import { WalkEntry, walkSync } from 'https://deno.land/std@0.212.0/fs/mod.ts'; +import { green } from 'https://deno.land/std@0.212.0/fmt/colors.ts'; import { parseString as parseRegExpString } from 'https://raw.githubusercontent.com/TypeScriptPlayground/std/main/src/regexp/mod.ts' const args = parseArgs<{ @@ -35,7 +36,7 @@ entries.forEach((entry) => { const newPath = oldPath.replace(pattern, args.replacer); const oldName = entry.isFile ? entry.name : ''; const newName = oldName.replace(pattern, args.replacer); - console.log(oldPath + oldName, '->', newPath + newName); + console.log(green(oldPath + oldName), '->', green(newPath + newName)); Deno.mkdirSync(newPath, {recursive: true});