This commit is contained in:
Timo Hocker 2020-01-15 14:46:10 +01:00
parent 1e3d411456
commit b8aa7140ad

View File

@ -31,12 +31,13 @@ function main () {
} }
const snippet = require (`./snippets/${template}/index.js`); const snippet = require (`./snippets/${template}/index.js`);
const folder = process.cwd();
if (!snippet.assert (process.cwd, args)) { if (!snippet.assert (folder, args)) {
console.log ('snipped rejected arguments'); console.log ('snipped rejected arguments');
return; return;
} }
snippet.run (process.cwd, args); snippet.run (folder, args);
} }
main (); main ();