@ovipakla/gm-cli 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/app.js +5 -2
  2. package/package.json +1 -1
package/app.js CHANGED
@@ -286,7 +286,8 @@ program
286
286
  .command('run')
287
287
  .description('Run the script named <foo>')
288
288
  .argument('<foo>', 'script name')
289
- .action((foo) => {
289
+ .argument('[args...]', 'arguments to pass to the script')
290
+ .action((foo, args) => {
290
291
  if (typeof foo !== 'string') {
291
292
  console.log(`missing argument`);
292
293
  console.log(`Exited with code 1`);
@@ -302,10 +303,12 @@ program
302
303
  return process.exit(1);
303
304
  }
304
305
 
306
+ const scriptArgs = args.join(' ');
307
+
305
308
  const shellScript = `#!/bin/bash
306
309
  cd ${sanitizePath(path.dirname(packageGM.file))}
307
310
 
308
- ${scriptData}
311
+ ${scriptData} ${scriptArgs}
309
312
  `;
310
313
  runShellScript(shellScript)
311
314
  });
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "2.2.0",
6
+ "version": "2.3.0",
7
7
  "description": "Gamemaker CLI toolkit. Watch &amp; sync gml sources with yyp project.",
8
8
  "main": "app.js",
9
9
  "scripts": {},