frontity
Version:
Frontity cli and entry point to other packages
22 lines (19 loc) • 652 B
JavaScript
;
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 commands_1.info();
console.log(`${information}
System info copied in the clipboard!
You can now paste it in the Frontity Community or GitHub issue.
`);
clipboardy_1.writeSync(information);
};
exports.default = info;