@smartsoft001/cli
Advanced tools
Comparing version 0.0.41 to 0.0.42
{ | ||
"name": "@smartsoft001/cli", | ||
"version": "0.0.41", | ||
"version": "0.0.42", | ||
"bin": { | ||
@@ -5,0 +5,0 @@ "smart": "smart.js" |
@@ -31,3 +31,3 @@ # @smartsoft001/cli | ||
`smart generate library [name] [type=default]` | ||
`smart generate library [name] [--type=default]` | ||
@@ -41,3 +41,3 @@ Parameters: | ||
<tr> | ||
<td>type</td> | ||
<td>--type</td> | ||
<td> | ||
@@ -44,0 +44,0 @@ Type of library (default: default) |
@@ -8,7 +8,7 @@ "use strict"; | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
const [, type, res, opt1] = args["_"]; | ||
const [, type, res] = args["_"]; | ||
switch (type) { | ||
case 'library': | ||
utils_1.log('Generate library'); | ||
utils_1.runCommand(`ng g library ${res} ${opt1 ? opt1 : ''}`); | ||
utils_1.runCommand(`ng g lib ${res} --type ${args.type ? args.type : ''}`); | ||
break; | ||
@@ -15,0 +15,0 @@ default: |
Sorry, the diff of this file is not supported yet
11289