From 05cdc03f3147d6d26cab0c775ed7a5f7713d8610 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Thu, 1 Dec 2022 22:48:12 -0500 Subject: [PATCH] Clean up and get ready to dev the real command. --- commands/create.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/commands/create.js b/commands/create.js index 0d77ebf..630490b 100644 --- a/commands/create.js +++ b/commands/create.js @@ -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 = ["", "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); - } + }