|
|
|
@ -5,16 +5,11 @@ import { log } from "../lib/logging.js"; |
|
|
|
|
export const description = "Test command."; |
|
|
|
|
|
|
|
|
|
export const options = [ |
|
|
|
|
["--fail", "cause it to fail", false] |
|
|
|
|
["--force", "obliterate files in the target directory", false] |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
export const argument = ["<string>", "name of the project"]; |
|
|
|
|
|
|
|
|
|
export const main = async (opts) => { |
|
|
|
|
if(opts.fail) { |
|
|
|
|
log.error("Producing failure."); |
|
|
|
|
process.exit(1); |
|
|
|
|
} else { |
|
|
|
|
log.info("Exiting normally."); |
|
|
|
|
process.exit(0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|