updates
This commit is contained in:
@@ -6,13 +6,13 @@ import {
|
||||
execCommandShell,
|
||||
existsPath,
|
||||
log,
|
||||
readFileToString,
|
||||
stringifyPretty,
|
||||
term,
|
||||
uint8ArrayToHexString,
|
||||
writeStringToFile,
|
||||
} from "https://script.hatter.ink/@37/deno-commons-mod.ts";
|
||||
} from "https://script.hatter.ink/@39/deno-commons-mod.ts";
|
||||
import {parseArgs} from "jsr:@std/cli/parse-args";
|
||||
import {readFileToString} from "https://global.hatter.ink/script/get/@1/deno-commons-1.6.0-mod.ts";
|
||||
|
||||
function handleHelp() {
|
||||
console.log(term.auto(`Build scripts to bundle and sign.
|
||||
@@ -181,5 +181,5 @@ async function buildFile(file: string, flags: any) {
|
||||
|
||||
await main();
|
||||
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260210T234339+08:00.MEUCIHmL1NC1x13n9Ulgfi1k
|
||||
// i6EtW3hEyc4kRuqopxP+zwYUAiEAwp86FypQnoXj7kXIRnkloPh1d2pIu/9o1eszNC5oJW4=
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260211T222821+08:00.MEQCIAweu8hlz6/t/UPWtHzB
|
||||
// 6fm4DZPTSfP7NBPSjad5qmB9AiAkpgAvpLAD1qKd+Cz0KBJT6GQq30yt1RKEbYtgKEQjHA==
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env runts -- --allow-import --allow-env --allow-run
|
||||
|
||||
import {execCommandShell} from "https://script.hatter.ink/@30/deno-commons-mod.ts";
|
||||
import {execCommandShell} from "https://script.hatter.ink/@39/deno-commons-mod.ts";
|
||||
|
||||
// or: cal -A 1 -B 1
|
||||
await execCommandShell("cal", [-3]);
|
||||
@@ -12,5 +12,5 @@ await execCommandShell("cal", [-3]);
|
||||
// });
|
||||
// const _child = command.spawn();
|
||||
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260207T231256+08:00.MEUCIQCTZtceCcESJyAW7TG6
|
||||
// IVRbKr0B2sE74XSEd8/FHcliIQIgESsAWqtcmSaxVl1Qch61o4kqsge+58lcc9zyEeEpJs4=
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260211T222859+08:00.MEUCIQDoiYXzcy6tb7PkZvfX
|
||||
// mX/V/yHagXha7VmavMQynzUa4gIgPVl9LeWqPZJPVrlcxQrdYxj1LRmBRzc3n1vEMWJI0eE=
|
||||
|
||||
@@ -1,20 +1,21 @@
|
||||
#!/usr/bin/env runts --
|
||||
#!/usr/bin/env runts -- --allow-import
|
||||
|
||||
import {args, exit} from "https://script.hatter.ink/@41/deno-commons-mod.ts";
|
||||
import {parseArgs} from "jsr:@std/cli/parse-args";
|
||||
import {toArrayBuffer} from "https://deno.land/std@0.203.0/streams/mod.ts";
|
||||
|
||||
const flags = parseArgs(Deno.args, {
|
||||
const flags = parseArgs(args(), {
|
||||
boolean: ["help"],
|
||||
string: ["value"],
|
||||
alias: {
|
||||
V: "value"
|
||||
}
|
||||
V: "value",
|
||||
},
|
||||
});
|
||||
|
||||
if (flags.help) {
|
||||
console.log("echo value | decode-uri-component.ts");
|
||||
console.log("decode-uri-component.ts --value <value>");
|
||||
Deno.exit(0);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
let input;
|
||||
@@ -27,5 +28,5 @@ const encoded = decodeURIComponent(input);
|
||||
|
||||
console.log(encoded);
|
||||
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260122T235929+08:00.MEUCIQDtNpI/a8OTsQtqz+C8
|
||||
// XpN1KDs8cDssZCFyRzhqQab3nwIgS7XiDm8mHvwuxSAGOcxGQKd76laaOr1qNdAUP92DRuY=
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260211T223654+08:00.MEQCIFtTTbxi8OppwMqWir2q
|
||||
// 0UbxQBHhtTORJyhDnU1vUfOTAiA31LMua+CE7wqry2JYMVikX0iE7e4c/gbuLIFj/KszEw==
|
||||
|
||||
@@ -1,20 +1,21 @@
|
||||
#!/usr/bin/env runts --
|
||||
#!/usr/bin/env runts -- --allow-import
|
||||
|
||||
import {args, exit} from "https://script.hatter.ink/@41/deno-commons-mod.ts";
|
||||
import {parseArgs} from "jsr:@std/cli/parse-args";
|
||||
import {toArrayBuffer} from "https://deno.land/std@0.203.0/streams/mod.ts";
|
||||
|
||||
const flags = parseArgs(Deno.args, {
|
||||
const flags = parseArgs(args(), {
|
||||
boolean: ["help"],
|
||||
string: ["value"],
|
||||
alias: {
|
||||
V: "value"
|
||||
}
|
||||
V: "value",
|
||||
},
|
||||
});
|
||||
|
||||
if (flags.help) {
|
||||
console.log("echo value | decode-uri.ts");
|
||||
console.log("decode-uri.ts --value <value>");
|
||||
Deno.exit(0);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
let input;
|
||||
@@ -27,5 +28,5 @@ const encoded = decodeURI(input);
|
||||
|
||||
console.log(encoded);
|
||||
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260122T235937+08:00.MEYCIQCpIqJ+E5Rq42txr21z
|
||||
// 89Hw017aSUwve29PjvR+zFEONAIhAKY8nSJigFTvpp1jr4quCIEdjOyWP/DCkzzi8KrkjvnZ
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260211T223656+08:00.MEUCIQD2Z+EYNFmlGJF1mRwZ
|
||||
// WtcimdYPCpkEiGWJ2nCoEFZhSAIgIcokRXUdswb+o/tjq098FbaBSRu2xk8t1qgKvBFp3hw=
|
||||
|
||||
@@ -1,20 +1,21 @@
|
||||
#!/usr/bin/env runts --
|
||||
#!/usr/bin/env runts -- --allow-import
|
||||
|
||||
import { parseArgs } from "jsr:@std/cli/parse-args";
|
||||
import { toArrayBuffer } from "https://deno.land/std@0.203.0/streams/mod.ts";
|
||||
import {args, exit} from "https://script.hatter.ink/@41/deno-commons-mod.ts";
|
||||
import {parseArgs} from "jsr:@std/cli/parse-args";
|
||||
import {toArrayBuffer} from "https://deno.land/std@0.203.0/streams/mod.ts";
|
||||
|
||||
const flags = parseArgs(Deno.args, {
|
||||
const flags = parseArgs(args(), {
|
||||
boolean: ["help"],
|
||||
string: ["value"],
|
||||
alias: {
|
||||
V: "value"
|
||||
}
|
||||
V: "value",
|
||||
},
|
||||
});
|
||||
|
||||
if (flags.help) {
|
||||
console.log("echo value | encode-uri-component.ts");
|
||||
console.log("encode-uri-component.ts --value <value>");
|
||||
Deno.exit(0);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
let input;
|
||||
@@ -27,5 +28,5 @@ const encoded = encodeURIComponent(input);
|
||||
|
||||
console.log(encoded);
|
||||
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260122T235939+08:00.MEQCIAQ5xspL/Z+a19RydUte
|
||||
// RRZnxP8wJSNLUFycWtQwJBvOAiAzk+43vb8lLiStnvmxQWN68Ddl2Hy5OodwvKxb2YWM4w==
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260211T223656+08:00.MEYCIQDWpN6TPlSUC2reXixQ
|
||||
// cAsopGtVR7O1eHOZ8yMXhXJamAIhAKHLwiUf97ArNi0fYjQ8pfEkRXA6kfxM41Uj3rgYj1X/
|
||||
|
||||
@@ -1,20 +1,21 @@
|
||||
#!/usr/bin/env runts --
|
||||
#!/usr/bin/env runts -- --allow-import
|
||||
|
||||
import {args, exit} from "https://script.hatter.ink/@41/deno-commons-mod.ts";
|
||||
import {parseArgs} from "jsr:@std/cli/parse-args";
|
||||
import {toArrayBuffer} from "https://deno.land/std@0.203.0/streams/mod.ts";
|
||||
|
||||
const flags = parseArgs(Deno.args, {
|
||||
const flags = parseArgs(args(), {
|
||||
boolean: ["help"],
|
||||
string: ["value"],
|
||||
alias: {
|
||||
V: "value"
|
||||
}
|
||||
V: "value",
|
||||
},
|
||||
});
|
||||
|
||||
if (flags.help) {
|
||||
console.log("echo value | encode-uri.ts");
|
||||
console.log("encode-uri.ts --value <value>");
|
||||
Deno.exit(0);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
let input;
|
||||
@@ -27,5 +28,5 @@ const encoded = encodeURI(input);
|
||||
|
||||
console.log(encoded);
|
||||
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260122T235941+08:00.MEQCIHZDqYuoOnswypoEtmy7
|
||||
// Op3cR/EpGacHSYeOSvZnH6IiAiBr6iTB1eQwlRuHyteapz8xGEh3n7lHC6x2y16d5qCwcQ==
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260211T223656+08:00.MEUCIHhfsF0mbPmh5MylnqPg
|
||||
// MEXtiFQ3ncpqJcQruOqdUViLAiEA77/M0NfgxlerlG0zjY/r0Etz7fQ0TyqX8B1Qe1iev8Q=
|
||||
|
||||
Reference in New Issue
Block a user