This is only for testing npm init for installing other things. https://learnjsthehardway.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

20 lines
432 B

import fs from "fs/promises";
import { mkdir_to, exec_i } from "../lib/builderator.js";
import { log } from "../lib/logging.js";
export const description = "Test command.";
export const options = [
["--fail", "cause it to fail", false]
];
export const main = async (opts) => {
if(opts.fail) {
log.error("Producing failure.");
process.exit(1);
} else {
log.info("Exiting normally.");
process.exit(0);
}
}