Tag generator script

This commit is contained in:
tree 2022-05-23 20:43:28 +02:00
rodič c43b0d17a1
revize 5443a60c6c
3 změnil soubory, kde provedl 10072 přidání a 503 odebrání

Zobrazit soubor

@ -67,6 +67,9 @@ media-kit:
changelog:
deno run --unstable --allow-read --allow-write --allow-run utils/changelog.js
tags:
deno run --unstable --allow-read utils/tags.js
schedule: plan
plan:

Rozdílový obsah nebyl zobrazen, protože je příliš veliký Načíst rozdílové porovnání

17
utils/tags.js Normal file
Zobrazit soubor

@ -0,0 +1,17 @@
import { UTXOEngine } from "./engine.js";
const utxo = new UTXOEngine({ silent: true });
await utxo.init();
const entry = utxo.entries["22"];
function run() {
const tags = [];
for (const ev of entry.specs.events) {
tags.push(...ev.tags);
}
console.log(
tags.map((t) => t.includes(" ") ? t.replace(" ", "-") : t).join(" "),
);
}
run();