changelord.js/src/command/schema.js

17 lines
284 B
JavaScript

import fs from "fs-extra";
const handler = async ({consola}) => {
consola.raw(
await fs.readFile(
new URL("../changelog-schema.yml", import.meta.url),
"utf-8"
)
);
};
export default {
command: "schema",
desc: "output the changelog schema",
handler,
};