UNPKG

frontity

Version:

Frontity cli and entry point to other packages

22 lines (19 loc) 662 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const commands_1 = require("../commands"); const clipboardy_1 = require("clipboardy"); /** * The info CLI command, usually run with `npx frontity info`. * * It retrieves information about the system and writes it in the console so it * can be copied and pasted in an issue. */ const info = async () => { const information = await (0, commands_1.info)(); console.log(`${information} System info copied in the clipboard! You can now paste it in the Frontity Community or GitHub issue. `); (0, clipboardy_1.writeSync)(information); }; exports.default = info;