diff --git a/script-meta-v2.json b/script-meta-v2.json index afa893a..e742dc5 100644 --- a/script-meta-v2.json +++ b/script-meta-v2.json @@ -107,12 +107,12 @@ }, "git-check.ts": { "script_name": "git-check.ts", - "script_length": 3040, - "script_sha256": "f03171ce3129c63f35d55c69fe7e8e5f085739ad56887810284716d1f1c95a27", + "script_length": 3107, + "script_sha256": "59eed22fad7b3a4f4ddb6c9c5ba6781771fbff6e0f7d30e869039ddc93f27d94", "script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/single-scripts/git-check.ts", "single_script_file": true, "publish_time": 1770541896791, - "update_time": 1770553736989 + "update_time": 1770566275385 }, "helloworld-bun.ts": { "script_name": "helloworld-bun.ts", diff --git a/single-scripts/git-check.ts b/single-scripts/git-check.ts index dcc4bfe..88c2e8d 100755 --- a/single-scripts/git-check.ts +++ b/single-scripts/git-check.ts @@ -11,8 +11,11 @@ import { uint8ArrayToHexString, writeStringToFile, } from "https://script.hatter.ink/@35/deno-commons-mod.ts"; -import {getGitLocalRev, getGitRemoteRev,} from "https://script.hatter.ink/@0/deno-git-mod.ts"; -import {parseArgs} from "jsr:@std/cli/parse-args"; +import { + getGitLocalRev, + getGitRemoteRev, +} from "https://script.hatter.ink/@0/deno-git-mod.ts"; +import { parseArgs } from "jsr:@std/cli/parse-args"; const MILLIS_OF_HOUR = 60 * 60 * 1000; @@ -39,6 +42,9 @@ async function main() { string: [ "interval", ], + alias: { + i: "interval", + }, }); if (flags.help) { @@ -95,5 +101,5 @@ git-check.ts [--interval NUMBER-OF-HOURS]`); await main(); -// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260208T202755+08:00.MEQCID0gTH0EMJ32IuSwRD2G -// WzpwUI7eCDHExlRBPmPizM49AiAJ0T2Haify9X26A2S9ve16kSHMI1SPYgoTbD1ho3b2Xw== +// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260208T235727+08:00.MEUCIQDm/E1d7mGqJ4nbguao +// +eFwlDMp/x7ZOWn95z2BSnIrfwIgJg0lHcBV8C2fQ5B/4Suvq7f9/f+M2CHrNn9CSzve4wA=