📝 Update script metadata and cheatsheet table format
This commit is contained in:
@@ -340,12 +340,12 @@
|
||||
},
|
||||
"update-cheatsheet.ts": {
|
||||
"script_name": "update-cheatsheet.ts",
|
||||
"script_length": 2927,
|
||||
"script_sha256": "a7d02932f1684134b3123a757f517614000bbecfd722967345e49eb718688a63",
|
||||
"script_length": 2922,
|
||||
"script_sha256": "262a18ac6b3376df201c7bad8b674392163f621cde67e4a0404c97e5d6a2f376",
|
||||
"script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/single-scripts/update-cheatsheet.ts",
|
||||
"single_script_file": true,
|
||||
"publish_time": 1775925235458,
|
||||
"update_time": 1775925939859
|
||||
"update_time": 1775925994593
|
||||
},
|
||||
"upper.ts": {
|
||||
"script_name": "upper.ts",
|
||||
|
||||
@@ -42,13 +42,13 @@ async function main(): Promise<void> {
|
||||
md.push("# cheatsheet");
|
||||
md.push("");
|
||||
|
||||
md.push("| Name | Alias | URL | Description |");
|
||||
md.push("| Name | Alias | Cheat Sheet | Description |");
|
||||
md.push("| ----- | ----- | ----- | ----- |");
|
||||
for (const meta of metas) {
|
||||
md.push(
|
||||
`| ${meta.name} | ${
|
||||
meta.aliases ? meta.aliases : "-"
|
||||
} | [${meta.name}/CHEATSHEET.md](${meta.name}/CHEATSHEET.md) | ${meta.description} |`,
|
||||
} | [CHEATSHEET.md](${meta.name}/CHEATSHEET.md) | ${meta.description} |`,
|
||||
);
|
||||
}
|
||||
md.push("");
|
||||
|
||||
Reference in New Issue
Block a user