Tag generator script
This commit is contained in:
rodič
c43b0d17a1
revize
5443a60c6c
3
Makefile
3
Makefile
|
@ -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í
|
@ -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();
|
Načítá se…
Odkázat v novém úkolu