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);
}