We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent9675396 commit9268392Copy full SHA for 9268392
src/cli.js
@@ -134,20 +134,23 @@ export async function cli(args) {
134
if(options.help){
135
console.log('Docs can be found at github: https://github.com/coderoad/builder-cli/');
136
}
137
+elseif(!options.command){
138
+console.log(`The command is missing. Chose either 'create' or 'build' and its options.`)
139
+}
140
else{
141
switch(options.command){
142
case'build':
143
// Otherwise, continue with the other options
144
options=awaitpromptForMissingOptions(options);
145
console.log(options);
-config=awaitbuild(options);
146
+constconfig=awaitbuild(options);
147
148
if(config){
149
if(options.output){
150
fs.writeFileSync(options.output,config,'utf8');
151
152
-console.log(JSON.stringify(config));
153
+console.log(JSON.stringify(config,null,2));
154
155
156
break;