commit.ts

This commit is contained in:
2026-01-25 13:00:55 +08:00
parent 0d0bd63186
commit 0c3abb3aab

View File

@@ -1,9 +1,9 @@
#!/usr/bin/env runts -- --runtime-bun #!/usr/bin/env runts -- --runtime-bun
import {spawn} from "node:child_process"; import { spawn } from "node:child_process";
import {existsSync} from "node:fs"; import { existsSync } from "node:fs";
import {createInterface} from "node:readline/promises"; import { createInterface } from "node:readline/promises";
import {stdin, stdout} from "node:process"; import { stdin, stdout } from "node:process";
class ProcessOutput { class ProcessOutput {
code: number; code: number;
@@ -303,7 +303,7 @@ async function main() {
gitCommitArgs.push("-m"); gitCommitArgs.push("-m");
gitCommitArgs.push(message); gitCommitArgs.push(message);
console.log(gitCommitArgs); console.log("Git command: ", "git", gitCommitArgs);
await execCommandShell("git", gitCommitArgs); await execCommandShell("git", gitCommitArgs);
} }