UNPKG

xweb-templating

Version:

A cli tool for converting 'tags' to regular html, php or some other format

12 lines (11 loc) 408 B
import { read_config } from "../config/config.js"; import { error } from "../log.js"; import { save_tagsets } from "./util.js"; export default function run() { const CONFIG = read_config("update/fetch"); if (!CONFIG.use.tags) { error("update/config", "Cannot run update for a project that has disabled tagsets"); return; } save_tagsets("update/fetch", CONFIG.tags, CONFIG); }