@jaisocx/command-line 1.0.1 → 1.0.3

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 (42) hide show
  1. package/README.md +2 -2
  2. package/package.json +2 -2
  3. package/transpiled/CommonJS/CommandLineArgs.d.ts +10 -0
  4. package/transpiled/CommonJS/CommandLineArgs.d.ts.map +1 -0
  5. package/transpiled/CommonJS/CommandLineArgs.js +57 -0
  6. package/transpiled/CommonJS/CommandLineArgs.js.map +1 -0
  7. package/transpiled/CommonJS/CommandLineArgsInterface.d.ts +7 -0
  8. package/transpiled/CommonJS/CommandLineArgsInterface.d.ts.map +1 -0
  9. package/transpiled/CommonJS/CommandLineArgsInterface.js +3 -0
  10. package/transpiled/CommonJS/CommandLineArgsInterface.js.map +1 -0
  11. package/transpiled/CommonJS/example/CommandArgsObjectExample.d.ts +12 -0
  12. package/transpiled/CommonJS/example/CommandArgsObjectExample.d.ts.map +1 -0
  13. package/transpiled/CommonJS/example/CommandArgsObjectExample.js +3 -0
  14. package/transpiled/CommonJS/example/CommandArgsObjectExample.js.map +1 -0
  15. package/transpiled/CommonJS/example/invokeJsClassExample.d.ts +2 -0
  16. package/transpiled/CommonJS/example/invokeJsClassExample.d.ts.map +1 -0
  17. package/transpiled/CommonJS/example/invokeJsClassExample.js +27 -0
  18. package/transpiled/CommonJS/example/invokeJsClassExample.js.map +1 -0
  19. package/transpiled/CommonJS/index.d.ts +3 -0
  20. package/transpiled/CommonJS/index.d.ts.map +1 -0
  21. package/transpiled/CommonJS/index.js +6 -0
  22. package/transpiled/CommonJS/index.js.map +1 -0
  23. package/transpiled/ESNext/CommandLineArgs.d.ts +10 -0
  24. package/transpiled/ESNext/CommandLineArgs.d.ts.map +1 -0
  25. package/transpiled/ESNext/CommandLineArgs.js +55 -0
  26. package/transpiled/ESNext/CommandLineArgs.js.map +1 -0
  27. package/transpiled/ESNext/CommandLineArgsInterface.d.ts +7 -0
  28. package/transpiled/ESNext/CommandLineArgsInterface.d.ts.map +1 -0
  29. package/transpiled/ESNext/CommandLineArgsInterface.js +2 -0
  30. package/transpiled/ESNext/CommandLineArgsInterface.js.map +1 -0
  31. package/transpiled/ESNext/example/CommandArgsObjectExample.d.ts +12 -0
  32. package/transpiled/ESNext/example/CommandArgsObjectExample.d.ts.map +1 -0
  33. package/transpiled/ESNext/example/CommandArgsObjectExample.js +2 -0
  34. package/transpiled/ESNext/example/CommandArgsObjectExample.js.map +1 -0
  35. package/transpiled/ESNext/example/invokeJsClassExample.d.ts +2 -0
  36. package/transpiled/ESNext/example/invokeJsClassExample.d.ts.map +1 -0
  37. package/transpiled/ESNext/example/invokeJsClassExample.js +24 -0
  38. package/transpiled/ESNext/example/invokeJsClassExample.js.map +1 -0
  39. package/transpiled/ESNext/index.d.ts +3 -0
  40. package/transpiled/ESNext/index.d.ts.map +1 -0
  41. package/transpiled/ESNext/index.js +2 -0
  42. package/transpiled/ESNext/index.js.map +1 -0
package/README.md CHANGED
@@ -13,9 +13,9 @@ Ready
13
13
 
14
14
  ## Latest update
15
15
 
16
- `@jaisocx/command-line` ver. 1.0.1
16
+ `@jaisocx/command-line` ver. 1.0.3
17
17
 
18
- Sat Aug 30 16:05:25 CEST 2025
18
+ Sat Aug 30 17:11:31 CEST 2025
19
19
 
20
20
 
21
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jaisocx/command-line",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "author": "Jaisocx",
5
5
  "keywords": [
6
6
  "command",
@@ -21,7 +21,7 @@
21
21
  "files": [
22
22
  "transpiled/CommonJS",
23
23
  "transpiled/ESNext",
24
- "transpiled/Simple",
24
+
25
25
  "README.md"
26
26
  ],
27
27
  "publishConfig": {
@@ -0,0 +1,10 @@
1
+ import { CommandLineArgsInterface } from "./CommandLineArgsInterface.js";
2
+ export declare class CommandLineArgs implements CommandLineArgsInterface {
3
+ protected _commandLineArgs_source: string[];
4
+ protected _commandLineArgs: object;
5
+ constructor();
6
+ getCommandLineArgs(): object;
7
+ readCommandLineArgs(): CommandLineArgs;
8
+ transformCommandLineArgs(): CommandLineArgs;
9
+ }
10
+ //# sourceMappingURL=CommandLineArgs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandLineArgs.d.ts","sourceRoot":"","sources":["../../src/CommandLineArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAIzE,qBAAa,eAAgB,YAAW,wBAAwB;IAE9D,SAAS,CAAC,uBAAuB,EAAE,MAAM,EAAE,CAAC;IAC5C,SAAS,CAAC,gBAAgB,EAAE,MAAM,CAAC;;IAW5B,kBAAkB,IAAI,MAAM;IAM5B,mBAAmB,IAAI,eAAe;IA0BtC,wBAAwB,IAAI,eAAe;CA0CnD"}
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CommandLineArgs = void 0;
4
+ class CommandLineArgs {
5
+ constructor() {
6
+ this._commandLineArgs_source = new Array();
7
+ this._commandLineArgs = new Object();
8
+ }
9
+ getCommandLineArgs() {
10
+ return this._commandLineArgs;
11
+ }
12
+ readCommandLineArgs() {
13
+ // Get command-line arguments
14
+ // and set to protected property of this ts class.
15
+ //@ts-ignore
16
+ this._commandLineArgs_source = [...process.argv];
17
+ return this;
18
+ }
19
+ /*
20
+ @purpose: --sitesTool_ThemeName="theme_example" --sitesToolName="CssCleanStart"
21
+ =>
22
+
23
+ {
24
+ "sitesTool_ThemeName": "theme_example",
25
+ "sitesToolName": "CssCleanStart",
26
+ ...
27
+ }
28
+
29
+ */
30
+ transformCommandLineArgs() {
31
+ this._commandLineArgs = new Object();
32
+ // @action: command-line arguments starting from index 2
33
+ let locComandLineArgs = [...this._commandLineArgs_source].slice(2);
34
+ locComandLineArgs.forEach((inForCommandLineArg) => {
35
+ // inForCommandLineArg example: --sitesToolName="CssCleanStart"
36
+ let [key, value] = ["", ""];
37
+ // @purpose: --sitesToolName="CssCleanStart" =>
38
+ // key_source = "--sitesToolName"
39
+ // value_source = "\"CssCleanStart\""
40
+ // @action: splitting inForCommandLineArg in key and value pair
41
+ let [key_source, value_source] = inForCommandLineArg.split("=");
42
+ // @purpose: "--sitesToolName" => "sitesToolName"
43
+ // @action: removing -- from start of the command line arg key
44
+ key = key_source.replace("--", "");
45
+ // @purpose: "\"CssCleanStart\"" => "CssCleanStart"
46
+ // @action: Removing quotes if any
47
+ if (value_source && (value_source.length !== 0)) {
48
+ value = value_source.replace(/(^"|"$)/g, "");
49
+ }
50
+ //@ts-ignore
51
+ this._commandLineArgs[key] = value;
52
+ });
53
+ return this;
54
+ }
55
+ }
56
+ exports.CommandLineArgs = CommandLineArgs;
57
+ //# sourceMappingURL=CommandLineArgs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandLineArgs.js","sourceRoot":"","sources":["../../src/CommandLineArgs.ts"],"names":[],"mappings":";;;AAIA,MAAa,eAAe;IAO1B;QACE,IAAI,CAAC,uBAAuB,GAAG,IAAI,KAAK,EAAc,CAAC;QACvD,IAAI,CAAC,gBAAgB,GAAG,IAAI,MAAM,EAAE,CAAC;IACvC,CAAC;IAIM,kBAAkB;QACvB,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;IAIM,mBAAmB;QAExB,6BAA6B;QAC7B,kDAAkD;QAClD,YAAY;QACZ,IAAI,CAAC,uBAAuB,GAAG,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QAGjD,OAAO,IAAI,CAAC;IACd,CAAC;IAGD;;;;;;;;;;MAUE;IAIK,wBAAwB;QAC7B,IAAI,CAAC,gBAAgB,GAAG,IAAI,MAAM,EAAE,CAAC;QAGrC,wDAAwD;QACxD,IAAI,iBAAiB,GAAG,CAAC,GAAG,IAAI,CAAC,uBAAuB,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAGnE,iBAAiB,CAAC,OAAO,CAAE,CAAE,mBAA2B,EAAG,EAAE;YAE3D,+DAA+D;YAC/D,IAAI,CAAE,GAAG,EAAE,KAAK,CAAE,GAAa,CAAE,EAAE,EAAE,EAAE,CAAE,CAAC;YAG1C,+CAA+C;YAC/C,kCAAkC;YAClC,sCAAsC;YACtC,+DAA+D;YAC/D,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC,GAAa,mBAAmB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAG1E,iDAAiD;YACjD,8DAA8D;YAC9D,GAAG,GAAG,UAAU,CAAC,OAAO,CAAG,IAAI,EAAE,EAAE,CAAE,CAAC;YAGtC,mDAAmD;YACnD,kCAAkC;YAClC,IAAK,YAAY,IAAI,CAAE,YAAY,CAAC,MAAM,KAAK,CAAC,CAAE,EAAG,CAAC;gBACpD,KAAK,GAAG,YAAY,CAAC,OAAO,CAAG,UAAU,EAAE,EAAE,CAAE,CAAC;YAClD,CAAC;YAGD,YAAY;YACZ,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QAErC,CAAC,CAAC,CAAC;QAGH,OAAO,IAAI,CAAC;IACd,CAAC;CAEF;AAxFD,0CAwFC"}
@@ -0,0 +1,7 @@
1
+ import { CommandLineArgs } from "./CommandLineArgs.js";
2
+ export interface CommandLineArgsInterface {
3
+ getCommandLineArgs(): object;
4
+ readCommandLineArgs(): CommandLineArgs;
5
+ transformCommandLineArgs(): CommandLineArgs;
6
+ }
7
+ //# sourceMappingURL=CommandLineArgsInterface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandLineArgsInterface.d.ts","sourceRoot":"","sources":["../../src/CommandLineArgsInterface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,wBAAwB;IAEvC,kBAAkB,IAAI,MAAM,CAAC;IAE7B,mBAAmB,IAAI,eAAe,CAAC;IAcvC,wBAAwB,IAAI,eAAe,CAAC;CAE7C"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=CommandLineArgsInterface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandLineArgsInterface.js","sourceRoot":"","sources":["../../src/CommandLineArgsInterface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ export type CommandArgsObjectExample = {
2
+ sitesTool_ThemeName: "theme_base";
3
+ sitesToolName: "";
4
+ cssOrJsTool: "";
5
+ templatePath: "";
6
+ templateDataMethodName: "";
7
+ keywordResponsiveSize: "";
8
+ withSizesCssConstants: "";
9
+ justTheme: "";
10
+ justThemeResponsiveDataset: "";
11
+ };
12
+ //# sourceMappingURL=CommandArgsObjectExample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandArgsObjectExample.d.ts","sourceRoot":"","sources":["../../../src/example/CommandArgsObjectExample.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,GAAG;IACrC,mBAAmB,EAAE,YAAY,CAAC;IAClC,aAAa,EAAE,EAAE,CAAC;IAClB,WAAW,EAAE,EAAE,CAAC;IAChB,YAAY,EAAE,EAAE,CAAC;IACjB,sBAAsB,EAAE,EAAE,CAAC;IAC3B,qBAAqB,EAAE,EAAE,CAAC;IAC1B,qBAAqB,EAAE,EAAE,CAAC;IAC1B,SAAS,EAAE,EAAE,CAAC;IACd,0BAA0B,EAAE,EAAE,CAAC;CAChC,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=CommandArgsObjectExample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandArgsObjectExample.js","sourceRoot":"","sources":["../../../src/example/CommandArgsObjectExample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export declare function invokeJsClassExample(): Promise<number>;
2
+ //# sourceMappingURL=invokeJsClassExample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invokeJsClassExample.d.ts","sourceRoot":"","sources":["../../../src/example/invokeJsClassExample.ts"],"names":[],"mappings":"AAKA,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,MAAM,CAAC,CAoC5D"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.invokeJsClassExample = invokeJsClassExample;
4
+ const CommandLineArgs_js_1 = require("../CommandLineArgs.js");
5
+ async function invokeJsClassExample() {
6
+ let commandLineArgsInstance = new CommandLineArgs_js_1.CommandLineArgs();
7
+ let cliArgs = commandLineArgsInstance
8
+ .readCommandLineArgs()
9
+ .transformCommandLineArgs()
10
+ .getCommandLineArgs();
11
+ console.log("cliArgs", cliArgs);
12
+ //@ts-ignore
13
+ let arg1 = cliArgs["arg1"];
14
+ //@ts-ignore
15
+ let arg2 = cliArgs["arg2"];
16
+ let exampleFunc = (arg1, arg2) => {
17
+ let retValSum = (+arg1 + +arg2);
18
+ return retValSum;
19
+ };
20
+ let retVal = exampleFunc(arg1, arg2);
21
+ return retVal;
22
+ }
23
+ invokeJsClassExample()
24
+ .then((retVal) => {
25
+ console.info("CommandLine js example invoked", retVal);
26
+ });
27
+ //# sourceMappingURL=invokeJsClassExample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invokeJsClassExample.js","sourceRoot":"","sources":["../../../src/example/invokeJsClassExample.ts"],"names":[],"mappings":";;AAKA,oDAoCC;AAzCD,8DAAwD;AAKjD,KAAK,UAAU,oBAAoB;IACxC,IAAI,uBAAuB,GAAoB,IAAI,oCAAe,EAAE,CAAC;IAErE,IAAI,OAAO,GAA6B,uBAAuB;SAC5D,mBAAmB,EAAE;SACrB,wBAAwB,EAAE;SAC1B,kBAAkB,EAA8B,CAAC;IAIpD,OAAO,CAAC,GAAG,CACT,SAAS,EACT,OAAO,CACR,CAAC;IAGF,YAAY;IACZ,IAAI,IAAI,GAAW,OAAO,CAAC,MAAM,CAAC,CAAC;IAGnC,YAAY;IACZ,IAAI,IAAI,GAAW,OAAO,CAAC,MAAM,CAAC,CAAC;IAGnC,IAAI,WAAW,GAAqB,CAAE,IAAY,EAAE,IAAY,EAAW,EAAE;QAC3E,IAAI,SAAS,GAAW,CAAE,CAAC,IAAI,GAAG,CAAC,IAAI,CAAE,CAAC;QAG1C,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC;IAEF,IAAI,MAAM,GAAW,WAAW,CAAG,IAAI,EAAE,IAAI,CAAE,CAAC;IAGhD,OAAO,MAAM,CAAC;AAEhB,CAAC;AAID,oBAAoB,EAAE;KACnB,IAAI,CACH,CAAE,MAAc,EAAG,EAAE;IACnB,OAAO,CAAC,IAAI,CACV,gCAAgC,EAChC,MAAM,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { CommandLineArgsInterface } from "./CommandLineArgsInterface.js";
2
+ export { CommandLineArgs } from "./CommandLineArgs.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CommandLineArgs = void 0;
4
+ var CommandLineArgs_js_1 = require("./CommandLineArgs.js");
5
+ Object.defineProperty(exports, "CommandLineArgs", { enumerable: true, get: function () { return CommandLineArgs_js_1.CommandLineArgs; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AACA,2DAAuD;AAA9C,qHAAA,eAAe,OAAA"}
@@ -0,0 +1,10 @@
1
+ import { CommandLineArgsInterface } from "./CommandLineArgsInterface.js";
2
+ export declare class CommandLineArgs implements CommandLineArgsInterface {
3
+ protected _commandLineArgs_source: string[];
4
+ protected _commandLineArgs: object;
5
+ constructor();
6
+ getCommandLineArgs(): object;
7
+ readCommandLineArgs(): CommandLineArgs;
8
+ transformCommandLineArgs(): CommandLineArgs;
9
+ }
10
+ //# sourceMappingURL=CommandLineArgs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandLineArgs.d.ts","sourceRoot":"","sources":["../../src/CommandLineArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAIzE,qBAAa,eAAgB,YAAW,wBAAwB;IAE9D,SAAS,CAAC,uBAAuB,EAAE,MAAM,EAAE,CAAC;IAC5C,SAAS,CAAC,gBAAgB,EAAE,MAAM,CAAC;;IAW5B,kBAAkB,IAAI,MAAM;IAM5B,mBAAmB,IAAI,eAAe;IA0BtC,wBAAwB,IAAI,eAAe;CA0CnD"}
@@ -0,0 +1,55 @@
1
+ export class CommandLineArgs {
2
+ _commandLineArgs_source;
3
+ _commandLineArgs;
4
+ constructor() {
5
+ this._commandLineArgs_source = new Array();
6
+ this._commandLineArgs = new Object();
7
+ }
8
+ getCommandLineArgs() {
9
+ return this._commandLineArgs;
10
+ }
11
+ readCommandLineArgs() {
12
+ // Get command-line arguments
13
+ // and set to protected property of this ts class.
14
+ //@ts-ignore
15
+ this._commandLineArgs_source = [...process.argv];
16
+ return this;
17
+ }
18
+ /*
19
+ @purpose: --sitesTool_ThemeName="theme_example" --sitesToolName="CssCleanStart"
20
+ =>
21
+
22
+ {
23
+ "sitesTool_ThemeName": "theme_example",
24
+ "sitesToolName": "CssCleanStart",
25
+ ...
26
+ }
27
+
28
+ */
29
+ transformCommandLineArgs() {
30
+ this._commandLineArgs = new Object();
31
+ // @action: command-line arguments starting from index 2
32
+ let locComandLineArgs = [...this._commandLineArgs_source].slice(2);
33
+ locComandLineArgs.forEach((inForCommandLineArg) => {
34
+ // inForCommandLineArg example: --sitesToolName="CssCleanStart"
35
+ let [key, value] = ["", ""];
36
+ // @purpose: --sitesToolName="CssCleanStart" =>
37
+ // key_source = "--sitesToolName"
38
+ // value_source = "\"CssCleanStart\""
39
+ // @action: splitting inForCommandLineArg in key and value pair
40
+ let [key_source, value_source] = inForCommandLineArg.split("=");
41
+ // @purpose: "--sitesToolName" => "sitesToolName"
42
+ // @action: removing -- from start of the command line arg key
43
+ key = key_source.replace("--", "");
44
+ // @purpose: "\"CssCleanStart\"" => "CssCleanStart"
45
+ // @action: Removing quotes if any
46
+ if (value_source && (value_source.length !== 0)) {
47
+ value = value_source.replace(/(^"|"$)/g, "");
48
+ }
49
+ //@ts-ignore
50
+ this._commandLineArgs[key] = value;
51
+ });
52
+ return this;
53
+ }
54
+ }
55
+ //# sourceMappingURL=CommandLineArgs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandLineArgs.js","sourceRoot":"","sources":["../../src/CommandLineArgs.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,eAAe;IAEhB,uBAAuB,CAAW;IAClC,gBAAgB,CAAS;IAInC;QACE,IAAI,CAAC,uBAAuB,GAAG,IAAI,KAAK,EAAc,CAAC;QACvD,IAAI,CAAC,gBAAgB,GAAG,IAAI,MAAM,EAAE,CAAC;IACvC,CAAC;IAIM,kBAAkB;QACvB,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;IAIM,mBAAmB;QAExB,6BAA6B;QAC7B,kDAAkD;QAClD,YAAY;QACZ,IAAI,CAAC,uBAAuB,GAAG,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QAGjD,OAAO,IAAI,CAAC;IACd,CAAC;IAGD;;;;;;;;;;MAUE;IAIK,wBAAwB;QAC7B,IAAI,CAAC,gBAAgB,GAAG,IAAI,MAAM,EAAE,CAAC;QAGrC,wDAAwD;QACxD,IAAI,iBAAiB,GAAG,CAAC,GAAG,IAAI,CAAC,uBAAuB,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAGnE,iBAAiB,CAAC,OAAO,CAAE,CAAE,mBAA2B,EAAG,EAAE;YAE3D,+DAA+D;YAC/D,IAAI,CAAE,GAAG,EAAE,KAAK,CAAE,GAAa,CAAE,EAAE,EAAE,EAAE,CAAE,CAAC;YAG1C,+CAA+C;YAC/C,kCAAkC;YAClC,sCAAsC;YACtC,+DAA+D;YAC/D,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC,GAAa,mBAAmB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAG1E,iDAAiD;YACjD,8DAA8D;YAC9D,GAAG,GAAG,UAAU,CAAC,OAAO,CAAG,IAAI,EAAE,EAAE,CAAE,CAAC;YAGtC,mDAAmD;YACnD,kCAAkC;YAClC,IAAK,YAAY,IAAI,CAAE,YAAY,CAAC,MAAM,KAAK,CAAC,CAAE,EAAG,CAAC;gBACpD,KAAK,GAAG,YAAY,CAAC,OAAO,CAAG,UAAU,EAAE,EAAE,CAAE,CAAC;YAClD,CAAC;YAGD,YAAY;YACZ,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QAErC,CAAC,CAAC,CAAC;QAGH,OAAO,IAAI,CAAC;IACd,CAAC;CAEF"}
@@ -0,0 +1,7 @@
1
+ import { CommandLineArgs } from "./CommandLineArgs.js";
2
+ export interface CommandLineArgsInterface {
3
+ getCommandLineArgs(): object;
4
+ readCommandLineArgs(): CommandLineArgs;
5
+ transformCommandLineArgs(): CommandLineArgs;
6
+ }
7
+ //# sourceMappingURL=CommandLineArgsInterface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandLineArgsInterface.d.ts","sourceRoot":"","sources":["../../src/CommandLineArgsInterface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,wBAAwB;IAEvC,kBAAkB,IAAI,MAAM,CAAC;IAE7B,mBAAmB,IAAI,eAAe,CAAC;IAcvC,wBAAwB,IAAI,eAAe,CAAC;CAE7C"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CommandLineArgsInterface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandLineArgsInterface.js","sourceRoot":"","sources":["../../src/CommandLineArgsInterface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ export type CommandArgsObjectExample = {
2
+ sitesTool_ThemeName: "theme_base";
3
+ sitesToolName: "";
4
+ cssOrJsTool: "";
5
+ templatePath: "";
6
+ templateDataMethodName: "";
7
+ keywordResponsiveSize: "";
8
+ withSizesCssConstants: "";
9
+ justTheme: "";
10
+ justThemeResponsiveDataset: "";
11
+ };
12
+ //# sourceMappingURL=CommandArgsObjectExample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandArgsObjectExample.d.ts","sourceRoot":"","sources":["../../../src/example/CommandArgsObjectExample.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,GAAG;IACrC,mBAAmB,EAAE,YAAY,CAAC;IAClC,aAAa,EAAE,EAAE,CAAC;IAClB,WAAW,EAAE,EAAE,CAAC;IAChB,YAAY,EAAE,EAAE,CAAC;IACjB,sBAAsB,EAAE,EAAE,CAAC;IAC3B,qBAAqB,EAAE,EAAE,CAAC;IAC1B,qBAAqB,EAAE,EAAE,CAAC;IAC1B,SAAS,EAAE,EAAE,CAAC;IACd,0BAA0B,EAAE,EAAE,CAAC;CAChC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CommandArgsObjectExample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandArgsObjectExample.js","sourceRoot":"","sources":["../../../src/example/CommandArgsObjectExample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export declare function invokeJsClassExample(): Promise<number>;
2
+ //# sourceMappingURL=invokeJsClassExample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invokeJsClassExample.d.ts","sourceRoot":"","sources":["../../../src/example/invokeJsClassExample.ts"],"names":[],"mappings":"AAKA,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,MAAM,CAAC,CAoC5D"}
@@ -0,0 +1,24 @@
1
+ import { CommandLineArgs } from "../CommandLineArgs.js";
2
+ export async function invokeJsClassExample() {
3
+ let commandLineArgsInstance = new CommandLineArgs();
4
+ let cliArgs = commandLineArgsInstance
5
+ .readCommandLineArgs()
6
+ .transformCommandLineArgs()
7
+ .getCommandLineArgs();
8
+ console.log("cliArgs", cliArgs);
9
+ //@ts-ignore
10
+ let arg1 = cliArgs["arg1"];
11
+ //@ts-ignore
12
+ let arg2 = cliArgs["arg2"];
13
+ let exampleFunc = (arg1, arg2) => {
14
+ let retValSum = (+arg1 + +arg2);
15
+ return retValSum;
16
+ };
17
+ let retVal = exampleFunc(arg1, arg2);
18
+ return retVal;
19
+ }
20
+ invokeJsClassExample()
21
+ .then((retVal) => {
22
+ console.info("CommandLine js example invoked", retVal);
23
+ });
24
+ //# sourceMappingURL=invokeJsClassExample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invokeJsClassExample.js","sourceRoot":"","sources":["../../../src/example/invokeJsClassExample.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAKxD,MAAM,CAAC,KAAK,UAAU,oBAAoB;IACxC,IAAI,uBAAuB,GAAoB,IAAI,eAAe,EAAE,CAAC;IAErE,IAAI,OAAO,GAA6B,uBAAuB;SAC5D,mBAAmB,EAAE;SACrB,wBAAwB,EAAE;SAC1B,kBAAkB,EAA8B,CAAC;IAIpD,OAAO,CAAC,GAAG,CACT,SAAS,EACT,OAAO,CACR,CAAC;IAGF,YAAY;IACZ,IAAI,IAAI,GAAW,OAAO,CAAC,MAAM,CAAC,CAAC;IAGnC,YAAY;IACZ,IAAI,IAAI,GAAW,OAAO,CAAC,MAAM,CAAC,CAAC;IAGnC,IAAI,WAAW,GAAqB,CAAE,IAAY,EAAE,IAAY,EAAW,EAAE;QAC3E,IAAI,SAAS,GAAW,CAAE,CAAC,IAAI,GAAG,CAAC,IAAI,CAAE,CAAC;QAG1C,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC;IAEF,IAAI,MAAM,GAAW,WAAW,CAAG,IAAI,EAAE,IAAI,CAAE,CAAC;IAGhD,OAAO,MAAM,CAAC;AAEhB,CAAC;AAID,oBAAoB,EAAE;KACnB,IAAI,CACH,CAAE,MAAc,EAAG,EAAE;IACnB,OAAO,CAAC,IAAI,CACV,gCAAgC,EAChC,MAAM,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { CommandLineArgsInterface } from "./CommandLineArgsInterface.js";
2
+ export { CommandLineArgs } from "./CommandLineArgs.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { CommandLineArgs } from "./CommandLineArgs.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC"}