ssh.ts
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user