📝 Update script metadata and modify argument parsing logic in commit.ts
This commit is contained in:
+2
-2
@@ -64,11 +64,11 @@
|
||||
"commit.ts": {
|
||||
"script_name": "commit.ts",
|
||||
"script_length": 3837,
|
||||
"script_sha256": "47ffe053662bed2965c06f4bed1f88a1c3d46575b5f3d13b870fe71ab9aa29d2",
|
||||
"script_sha256": "142ffeb19e66fbcf67f5421f054594ff410979bdb37fdde9a0f5624ba9010b72",
|
||||
"script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/single-scripts/commit.ts",
|
||||
"single_script_file": true,
|
||||
"publish_time": 1769318306585,
|
||||
"update_time": 1775961141667
|
||||
"update_time": 1775961169415
|
||||
},
|
||||
"decode-uri-component.ts": {
|
||||
"script_name": "decode-uri-component.ts",
|
||||
|
||||
@@ -23,7 +23,7 @@ async function main() {
|
||||
const flags = parseArgs(Deno.args, {
|
||||
boolean: ["help", "check-only", "auto-commit"],
|
||||
alias: {
|
||||
H: "help",
|
||||
h: "help",
|
||||
C: "check-only",
|
||||
A: "auto-commit",
|
||||
},
|
||||
@@ -34,7 +34,7 @@ async function main() {
|
||||
if (flags.help) {
|
||||
console.log(`commit.ts
|
||||
|
||||
commit.ts [-H|--help] - show help message
|
||||
commit.ts [-h|--help] - show help message
|
||||
commit.ts [-C|--check-only] - check rev and status only
|
||||
commit.ts [-A|--auto-commit] - auto commit with AI summarize
|
||||
`);
|
||||
@@ -117,5 +117,5 @@ main().catch((err) => {
|
||||
process.exit(0);
|
||||
}).then(() => process.exit(0));
|
||||
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260412T103218+08:00.MEQCIHiNlGec5h1nMm8DdzCY
|
||||
// dmCVLfihKXkov+AmLoTwSU+wAiBmt279SHXXYxMEOWeXuyq/is77Dnk1BBMbWXUswqFAJQ==
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260412T103245+08:00.MEUCIQDIi9NgZUYx0R6D9QFj
|
||||
// pVVw5kHya5I06LfqgQNW7t9d1wIgVtCxF058zi3BI1Vp5C80dY1DA3LoDhW7mQZ+CSwi/28=
|
||||
|
||||
Reference in New Issue
Block a user