feat: cmd.ts
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env runts -- --runtime-bun
|
||||
|
||||
const { spawn } = require("node:child_process");
|
||||
import {spawn} from "node:child_process";
|
||||
|
||||
const _child = spawn("cal", ["-3"], {
|
||||
shell: true,
|
||||
@@ -8,5 +8,5 @@ const _child = spawn("cal", ["-3"], {
|
||||
stdio: ["inherit", "inherit", "inherit"],
|
||||
});
|
||||
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260111T141122+08:00.MEYCIQDP7aV0GffQPybqxwbt
|
||||
// Kkwj3n9XxQRDc2DyBjfX5gNEXgIhAOb0+0t7EVEOCnces5zCHGtuyp/hRuPyhYjR/YgoykWp
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260123T010042+08:00.MEUCIQD5tXRb9i5PnOf3c22J
|
||||
// /xe8L3Hquz2AwwKMq4oiCCL8MQIgGyextuCVasGLXrL3fw29p30QxCMlBKC7ZW9MoiffdEQ=
|
||||
|
||||
@@ -2,10 +2,11 @@
|
||||
|
||||
// reference: https://git.hatter.ink/rust-scripts/scriptbase/src/branch/main/ssh-rs/src/main.rs
|
||||
|
||||
const { spawn } = require("node:child_process");
|
||||
const { parseArgs } = require("node:util");
|
||||
const fs = require("node:fs");
|
||||
const os = require("node:os");
|
||||
import {spawn} from "node:child_process";
|
||||
import {parseArgs} from "node:util";
|
||||
|
||||
import fs from "node:fs";
|
||||
import os from "node:os";
|
||||
|
||||
// reference: https://bun.com/docs/runtime/color
|
||||
const GREEN = Bun.color("green", "ansi");
|
||||
@@ -210,5 +211,5 @@ async function main() {
|
||||
}
|
||||
await main();
|
||||
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260111T140745+08:00.MEUCIQCY2J0SNtcK1pMKCKE7
|
||||
// CFT9R+n9C38X7Y0AMf3krdiKBgIgYAmJTMonrmTnaeURZ3+7a/HQrT0ZLbc27UtPkZ7GloI=
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260123T010039+08:00.MEYCIQCiVexBU7NyQo5LWv5F
|
||||
// /mzpbGJiduFHzzhEg/9FB5Y8ZQIhAN21S6dCoghgEJCS+MFZejEF2w7PUwSZMp2r92cUUGqO
|
||||
|
||||
Reference in New Issue
Block a user