ssh.ts
This commit is contained in:
@@ -238,12 +238,12 @@
|
||||
},
|
||||
"ssh.ts": {
|
||||
"script_name": "ssh.ts",
|
||||
"script_length": 6600,
|
||||
"script_sha256": "32133f8fd4d0804dfed9f0db65dc4d4f34dd851ab7b7886fd572aa2ea4795a1a",
|
||||
"script_length": 6633,
|
||||
"script_sha256": "e79f8ac6902a48976693d969e00154870042698dbf5cc3457cc720beefc41b14",
|
||||
"script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/single-scripts/ssh.ts",
|
||||
"single_script_file": true,
|
||||
"publish_time": 1768111677531,
|
||||
"update_time": 1770397234557
|
||||
"update_time": 1770397438002
|
||||
},
|
||||
"tree.ts": {
|
||||
"script_name": "tree.ts",
|
||||
|
||||
@@ -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