kschema-api-gen-appjs 1.3.3 → 1.3.4

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.
package/bin/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  import getLatestVersion from "./core/getLatestVersion.js";
4
4
  import loadRunner from "./core/loadRunner.js";
@@ -5,5 +5,5 @@ export const announce = ({ inResolvedFolderName }) => {
5
5
  console.log("Next:");
6
6
  console.log("");
7
7
  console.log(`cd ${inResolvedFolderName}`);
8
- console.log(`npx kschema-api-gen AddSubRoute`);
8
+ console.log(`npx kschema-api-gen-appjs AddSubRoute`);
9
9
  };
@@ -1,12 +1,17 @@
1
1
  export default function parseInput() {
2
2
  const [cmd, ...args] = process.argv.slice(2);
3
3
 
4
+ const flags = Object.fromEntries(
5
+ args
6
+ .filter(a => a.includes("="))
7
+ .map(a => a.split("="))
8
+ );
9
+
4
10
  return {
5
11
  cmd: cmd || null,
6
- args,
7
- template: cmd || null,
8
- folderName: args[0] || null,
9
- argsAsIs: args[0] || null,
12
+ folderName: flags?.folderName || null,
13
+ isAnnounce: flags?.isAnnounce || true,
14
+ showLog: flags?.showLog || false,
10
15
  toPath: process.cwd()
11
16
  };
12
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kschema-api-gen-appjs",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "CLI to build for appjs, the endpoints",
5
5
  "keywords": [
6
6
  "cli",