From c0e6d3e7f1943573eb13ad74aaa34b2da6295cbc Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sun, 25 Jan 2026 17:05:16 +0800 Subject: [PATCH] updates --- libraries/deno-commons-mod.ts | 2 +- script-meta-v2.json | 6 +++--- single-scripts/commit.ts | 14 +++++++------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/libraries/deno-commons-mod.ts b/libraries/deno-commons-mod.ts index 3ee8304..0dc9e82 100644 --- a/libraries/deno-commons-mod.ts +++ b/libraries/deno-commons-mod.ts @@ -532,7 +532,7 @@ export class ProcessBar { stop(clearLine?: boolean): void { if (this.interval) { clearInterval(this.interval); - process.stderr.write(clearLine ? "\r" : "\n"); + process.stderr.write(clearLine ? "\r\x1b[K" : "\n"); } } } diff --git a/script-meta-v2.json b/script-meta-v2.json index aa4680c..b3aac3a 100644 --- a/script-meta-v2.json +++ b/script-meta-v2.json @@ -44,12 +44,12 @@ }, "commit.ts": { "script_name": "commit.ts", - "script_length": 10258, - "script_sha256": "ab153bd9bfcb410114bc39addc69809350772d65083440087ba9f52241385f8a", + "script_length": 10272, + "script_sha256": "74d59880ab28ea69d2c30a71802aa8246870e6a040ec0f1e26ba2ca1fa6e9acb", "script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/single-scripts/commit.ts", "single_script_file": true, "publish_time": 1769318306585, - "update_time": 1769331759932 + "update_time": 1769331909884 }, "decode-uri-component.ts": { "script_name": "decode-uri-component.ts", diff --git a/single-scripts/commit.ts b/single-scripts/commit.ts index 9072f41..6cb9ad0 100755 --- a/single-scripts/commit.ts +++ b/single-scripts/commit.ts @@ -1,9 +1,9 @@ #!/usr/bin/env runts -- --runtime-bun -import {spawn} from "node:child_process"; -import {existsSync} from "node:fs"; -import {createInterface} from "node:readline/promises"; -import {stdin, stdout} from "node:process"; +import { spawn } from "node:child_process"; +import { existsSync } from "node:fs"; +import { createInterface } from "node:readline/promises"; +import { stdin, stdout } from "node:process"; class ProcessOutput { code: number; @@ -252,7 +252,7 @@ class ProcessBar { stop(clearLine?: boolean): void { if (this.interval) { clearInterval(this.interval); - process.stderr.write(clearLine ? "\r" : "\n"); + process.stderr.write(clearLine ? "\r\x1b[K" : "\n"); } } } @@ -328,5 +328,5 @@ main().catch((err) => { process.exit(0); }).then(() => process.exit(0)); -// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260125T170220+08:00.MEUCIBbcPLl4NzXzhcDwPt7F -// i49+HyN/RBgiMXrhui/WYyhnAiEA3oSQc4/lRuy+kkCsH0PGaQr91ATjt/gZhl8PeLY0PbM= +// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260125T170500+08:00.MEYCIQCQaZ4intwkah4yIvBY +// ZDtlPggRVyMKGYjB0pKf0mKLSwIhANSfiFQpRZQ4ANeLAbBUJ4YQUgDISqLpX2v7LnOnK1ki