This commit is contained in:
2026-02-07 01:04:02 +08:00
parent 6739f5b86b
commit 85524a0fe1
2 changed files with 7 additions and 5 deletions

View File

@@ -4,7 +4,7 @@
import {parseArgs} from "node:util";
import {log, readFileToString, term, execCommandShell} from "../libraries/deno-commons-mod.ts";
import {execCommandShell, log, readFileToString, term,} from "https://script.hatter.ink/@29/deno-commons-mod.ts";
import JSON5 from "npm:json5";
class SshTsArgs {
@@ -195,7 +195,9 @@ async function main() {
sshConfig.default_username || "root";
sshArgs.push(`${sshUsername}@${sshProfile.host}`);
console.log(term.auto(`[green][OK ][/green] ${sshCommand} ${sshArgs.join(" ")}`));
console.log(
term.auto(`[green][OK ][/green] ${sshCommand} ${sshArgs.join(" ")}`),
);
await execCommandShell(sshCommand, sshArgs);
}
await main();