kmore-cli
Advanced tools
Comparing version 0.16.3 to 0.16.4
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.16.4](https://github.com/waitingsong/kmore/compare/v0.16.3...v0.16.4) (2020-06-06) | ||
**Note:** Version bump only for package kmore-cli | ||
## [0.16.3](https://github.com/waitingsong/kmore/compare/v0.16.2...v0.16.3) (2020-04-15) | ||
@@ -8,0 +16,0 @@ |
@@ -7,3 +7,3 @@ #!/usr/bin/env node | ||
* | ||
* @version 0.16.1 | ||
* @version 0.16.3 | ||
* @author waiting | ||
@@ -54,5 +54,6 @@ * @license MIT | ||
/* eslint-disable @typescript-eslint/no-unsafe-call */ | ||
function runCmd(args) { | ||
const { cmd, options, debug } = args; | ||
debug && options && console.info(options); | ||
debug && console.info(options); | ||
switch (cmd) { | ||
@@ -62,2 +63,3 @@ case 'gen': | ||
default: | ||
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions | ||
throw new Error(`invalid cmd: "${cmd}"`); | ||
@@ -135,6 +137,3 @@ } | ||
/** | ||
* kmore-cli | ||
* command: gen case insensitive | ||
*/ | ||
/* eslint-disable node/no-process-exit */ | ||
// log(yargs.argv) | ||
@@ -149,3 +148,3 @@ let args; | ||
} | ||
if (args && args.cmd) { | ||
if (args.cmd) { | ||
if (args.needHelp) { | ||
@@ -158,2 +157,3 @@ const msg = genCmdHelp(args.cmd); | ||
// eslint-disable-next-line id-length | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment | ||
args.options = parseCliOpts(args.cmd, { ...yargs.argv, _: '' }); | ||
@@ -160,0 +160,0 @@ args.debug && console.info(args); |
@@ -5,3 +5,3 @@ /** | ||
* | ||
* @version 0.16.1 | ||
* @version 0.16.3 | ||
* @author waiting | ||
@@ -18,5 +18,6 @@ * @license MIT | ||
/* eslint-disable @typescript-eslint/no-unsafe-call */ | ||
function runCmd(args) { | ||
const { cmd, options, debug } = args; | ||
debug && options && console.info(options); | ||
debug && console.info(options); | ||
switch (cmd) { | ||
@@ -26,2 +27,3 @@ case 'gen': | ||
default: | ||
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions | ||
throw new Error(`invalid cmd: "${cmd}"`); | ||
@@ -28,0 +30,0 @@ } |
export * from './lib/index'; | ||
export * from './lib/model'; |
@@ -0,5 +1,6 @@ | ||
/* eslint-disable @typescript-eslint/no-unsafe-call */ | ||
import { buildSource } from 'kmore-types'; | ||
export function runCmd(args) { | ||
const { cmd, options, debug } = args; | ||
debug && options && console.info(options); | ||
debug && console.info(options); | ||
switch (cmd) { | ||
@@ -9,2 +10,3 @@ case 'gen': | ||
default: | ||
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions | ||
throw new Error(`invalid cmd: "${cmd}"`); | ||
@@ -11,0 +13,0 @@ } |
@@ -8,3 +8,3 @@ import { BuildSrcOpts } from 'kmore-types'; | ||
export interface RunCmdArgs { | ||
cmd: CmdType | void; | ||
cmd: CmdType | undefined; | ||
options: Options; | ||
@@ -11,0 +11,0 @@ debug: boolean; |
{ | ||
"name": "kmore-cli", | ||
"author": "waiting", | ||
"version": "0.16.3", | ||
"version": "0.16.4", | ||
"description": "Command line to generate config of tables from ts types file for kmore", | ||
@@ -33,3 +33,3 @@ "keywords": [ | ||
"@waiting/shared-types": "3", | ||
"kmore-types": "^0.16.3", | ||
"kmore-types": "^0.16.4", | ||
"rxjs": "^6.5.2", | ||
@@ -87,3 +87,3 @@ "yargs": "15" | ||
}, | ||
"gitHead": "c7eb556cb4e06c17747db3a6fe28b51a9d24c17c" | ||
"gitHead": "ded027cfe469f2ed1082620814e2b4486382b27d" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16577
353
Updatedkmore-types@^0.16.4