Skip to content

Commit 4ca7c6a

Browse files
author
Chen Asraf
committed
Fixed cmd
1 parent 0fd9964 commit 4ca7c6a

8 files changed

Lines changed: 12 additions & 8 deletions

File tree

cmd.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class ScaffoldCmd {
4040
}
4141

4242
private getArgValue(arg: string, value: string, options: IScaffold.IConfig) {
43+
console.log({arg})
4344
switch (arg) {
4445
case 'template':
4546
return (options.templates || []).concat([value])
@@ -52,6 +53,7 @@ class ScaffoldCmd {
5253
const [k, v] = item.split('=')
5354
locals[k] = v
5455
}
56+
return locals
5557
default:
5658
throw TypeError(`arguments invalid for config: arg=\`${arg}\`, value=\`${value}\``)
5759
}

dist/cmd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cmd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/scaffold.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/scaffold.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)