@jaisocx/command-line 1.0.2 → 1.2.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.
- package/README.md +237 -8
- package/package.json +2 -1
- package/software_labels/software_tm_label_jaisocx.svg +126 -0
- package/transpiled/CommonJS/CommandLineArgs.d.ts +3 -2
- package/transpiled/CommonJS/CommandLineArgs.d.ts.map +1 -1
- package/transpiled/CommonJS/CommandLineArgs.js +7 -0
- package/transpiled/CommonJS/CommandLineArgs.js.map +1 -1
- package/transpiled/CommonJS/CommandLineArgsInterface.d.ts +3 -3
- package/transpiled/CommonJS/CommandLineArgsInterface.d.ts.map +1 -1
- package/transpiled/CommonJS/CommandLineArgsInterface.js +0 -0
- package/transpiled/CommonJS/CommandLineArgsInterface.js.map +0 -0
- package/transpiled/CommonJS/example/CommandArgsObjectExample.d.ts +0 -0
- package/transpiled/CommonJS/example/CommandArgsObjectExample.d.ts.map +0 -0
- package/transpiled/CommonJS/example/CommandArgsObjectExample.js +0 -0
- package/transpiled/CommonJS/example/CommandArgsObjectExample.js.map +0 -0
- package/transpiled/CommonJS/example/invokeJsClassExample.d.ts +0 -0
- package/transpiled/CommonJS/example/invokeJsClassExample.d.ts.map +0 -0
- package/transpiled/CommonJS/example/invokeJsClassExample.js +0 -0
- package/transpiled/CommonJS/example/invokeJsClassExample.js.map +0 -0
- package/transpiled/CommonJS/index.d.ts +0 -2
- package/transpiled/CommonJS/index.d.ts.map +1 -1
- package/transpiled/CommonJS/index.js +1 -3
- package/transpiled/CommonJS/index.js.map +1 -1
- package/transpiled/ESNext/CommandLineArgs.d.ts +3 -2
- package/transpiled/ESNext/CommandLineArgs.d.ts.map +1 -1
- package/transpiled/ESNext/CommandLineArgs.js +7 -0
- package/transpiled/ESNext/CommandLineArgs.js.map +1 -1
- package/transpiled/ESNext/CommandLineArgsInterface.d.ts +3 -3
- package/transpiled/ESNext/CommandLineArgsInterface.d.ts.map +1 -1
- package/transpiled/ESNext/CommandLineArgsInterface.js +0 -0
- package/transpiled/ESNext/CommandLineArgsInterface.js.map +0 -0
- package/transpiled/ESNext/example/CommandArgsObjectExample.d.ts +0 -0
- package/transpiled/ESNext/example/CommandArgsObjectExample.d.ts.map +0 -0
- package/transpiled/ESNext/example/CommandArgsObjectExample.js +0 -0
- package/transpiled/ESNext/example/CommandArgsObjectExample.js.map +0 -0
- package/transpiled/ESNext/example/invokeJsClassExample.d.ts +0 -0
- package/transpiled/ESNext/example/invokeJsClassExample.d.ts.map +0 -0
- package/transpiled/ESNext/example/invokeJsClassExample.js +0 -0
- package/transpiled/ESNext/example/invokeJsClassExample.js.map +0 -0
- package/transpiled/ESNext/index.d.ts +0 -2
- package/transpiled/ESNext/index.d.ts.map +1 -1
- package/transpiled/ESNext/index.js +0 -1
- package/transpiled/ESNext/index.js.map +1 -1
package/README.md
CHANGED
|
@@ -1,40 +1,269 @@
|
|
|
1
|
+
|
|
2
|
+

|
|
3
|
+
|
|
4
|
+
`@jaisocx/command-line`
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
1
8
|
# Command Line
|
|
2
9
|
|
|
10
|
+
## What is this
|
|
11
|
+
> Fine-tuning for Console
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
node example.js --arg1="value1" --argBC="Another Value 2" --debug
|
|
16
|
+
```
|
|
3
17
|
|
|
18
|
+
```json
|
|
19
|
+
{ "arg1": "value1", "argBC": "Another Value 2", "debug": true }
|
|
20
|
+
```
|
|
4
21
|
|
|
5
|
-
|
|
22
|
+
|
|
23
|
+
The very base library,
|
|
24
|
+
installable via `yarn` or `npm`,
|
|
25
|
+
written in `typescript` programming language.
|
|
26
|
+
|
|
27
|
+
Just a **fine-tuning** little js library **for console** javascript.
|
|
6
28
|
|
|
29
|
+
Supports **bash key-value args**,
|
|
30
|
+
and provides in ts or js code **as a js variable** of js datatype **Object**.
|
|
31
|
+
|
|
32
|
+
The only `js` class `CommandLineArgs` with the `interface`,
|
|
33
|
+
was thought **for reading command line args**,
|
|
34
|
+
sent from console, **in another javascript function**.
|
|
35
|
+
|
|
36
|
+
**Other** `.js` or `.ts` files are **for the infrastructure** of this package,
|
|
37
|
+
like for example,
|
|
38
|
+
the current `README.md` is for the documentation
|
|
39
|
+
about this library.
|
|
40
|
+
|
|
41
|
+
---
|
|
7
42
|
|
|
8
43
|
|
|
9
44
|
|
|
10
45
|
## Status
|
|
46
|
+
> Ok
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
## Supports
|
|
51
|
+
> Server Side
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
Browser | Express | Console
|
|
55
|
+
no | yes | yes
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
## Size
|
|
61
|
+
> 60 KB - 30 KB - 5 KB
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
Current Folder | node_modules/ | typescript in src/ | Latest Tarball | Main js class
|
|
65
|
+
51 KB | 25 KB | 4 KB | 7 KB | 2 KB
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
Main js class: src/CommandLineArgs.ts 2.1 KB
|
|
70
|
+
Latest Tarball: jaisocx-command-line-1.2.3.tgz 7.0 KB
|
|
71
|
+
Current Folder: workspace/ts/Jaisocx_SitesTools/packages/CommandLine 51.0 KB
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
## Required
|
|
77
|
+
> Node installed
|
|
78
|
+
|
|
79
|
+
|
|
11
80
|
|
|
12
|
-
Ready
|
|
13
81
|
|
|
14
82
|
## Latest update
|
|
83
|
+
> Winter 2026
|
|
15
84
|
|
|
16
|
-
`@jaisocx/command-line` ver. 1.
|
|
85
|
+
**Library**: `@jaisocx/command-line` ver. `1.2.3`
|
|
17
86
|
|
|
18
|
-
|
|
87
|
+
**Updated at**: `Mon Jan 19 03:29:44 UTC 2026`
|
|
19
88
|
|
|
20
89
|
|
|
21
90
|
|
|
22
|
-
## What is this
|
|
23
91
|
|
|
24
92
|
|
|
93
|
+
## Package Structure
|
|
94
|
+
> 60 KB ( sixty kilobyte ) library folder's filesize
|
|
95
|
+
|
|
96
|
+
```fs
|
|
97
|
+
software_labels/
|
|
98
|
+
software_tm_label_jaisocx.svg
|
|
99
|
+
src/
|
|
100
|
+
index.ts
|
|
101
|
+
CommandLineArgsInterface.ts
|
|
102
|
+
CommandLineArgs.ts
|
|
103
|
+
example/
|
|
104
|
+
CommandArgsObjectExample.ts
|
|
105
|
+
invokeJsClassExample.ts
|
|
106
|
+
transpiled/
|
|
107
|
+
CommonJS/
|
|
108
|
+
CommandLineArgs.js
|
|
109
|
+
...
|
|
110
|
+
...
|
|
111
|
+
example/
|
|
112
|
+
invokeJsClassExample.js
|
|
113
|
+
...
|
|
114
|
+
ESNext/
|
|
115
|
+
CommandLineArgs.js
|
|
116
|
+
...
|
|
117
|
+
...
|
|
118
|
+
example/
|
|
119
|
+
invokeJsClassExample.js
|
|
120
|
+
...
|
|
121
|
+
package.json
|
|
122
|
+
README.md
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
## Bash Coding Example
|
|
130
|
+
> 2 code lines ( bash | sh )
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
|
|
134
|
+
# invokes the .js from example below 'ts coding example'
|
|
135
|
+
node invokeJsInConsoleExample.js --Root="/home/user/MyProject" --sitesToolPath="sites_tools/SitesTool"
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
## API & Interfaces
|
|
142
|
+
|
|
143
|
+
`src/CommandLineArgsInterface.ts`
|
|
144
|
+
|
|
145
|
+
```typescript
|
|
146
|
+
interface CommandLineArgsInterface {
|
|
147
|
+
|
|
148
|
+
getCommandLineArgs(): object;
|
|
149
|
+
|
|
150
|
+
getAfterReadNTransformed(): object;
|
|
151
|
+
|
|
152
|
+
readCommandLineArgs(): CommandLineArgsInterface;
|
|
153
|
+
|
|
154
|
+
transformCommandLineArgs(): CommandLineArgsInterface;
|
|
155
|
+
|
|
156
|
+
}
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
## Typescript Coding Example
|
|
164
|
+
> 10 - 30 code lines ( ts | js )
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
```typescript
|
|
169
|
+
console.log( (new CommandLineArgs()).getAfterReadNTransformed() );
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
```typescript
|
|
175
|
+
// Script Name: invokeJsInConsoleExample.js
|
|
176
|
+
// invoked in bash terminal like this:
|
|
177
|
+
// $_ node invokeJsInConsoleExample.js --Root="/home/user/MyProject" --sitesToolPath="sites_tools/SitesTool"
|
|
178
|
+
|
|
179
|
+
import * as path from "node:path";
|
|
180
|
+
import { CommandLineArgs } from "@jaisocx/command-line";
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
type CommandArgsObject = {
|
|
185
|
+
Root: "",
|
|
186
|
+
sitesToolPath: ""
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
function invokeJsInConsoleExample(): number {
|
|
190
|
+
|
|
191
|
+
// NEW INSTANCE OF THE MAIN CLASS IN THIS LIBRARY ( CommandLineArgs )
|
|
192
|
+
|
|
193
|
+
let commandLineArgsInstance: CommandLineArgs = new CommandLineArgs();
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
// FIRST GET ALL CLI ARGS INTO ONE js VARIABLE ( commandArgs )
|
|
198
|
+
|
|
199
|
+
let commandArgs: CommandArgsObject = commandLineArgsInstance
|
|
200
|
+
.readCommandLineArgs()
|
|
201
|
+
.transformCommandLineArgs()
|
|
202
|
+
.getCommandLineArgs() as CommandArgsObject;
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
// PRINT COMMAND LINE ARGS TO CONSOLE: console.log( commandArgs );
|
|
207
|
+
//
|
|
208
|
+
// SEES IN CONSOLE LIKE THIS:
|
|
209
|
+
// {
|
|
210
|
+
// Root: '/home/user/MyProject',
|
|
211
|
+
// sitesToolPath: 'sites_tools/SitesTool'
|
|
212
|
+
// }
|
|
213
|
+
|
|
214
|
+
console.log( commandArgs );
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
// GET CLI ARGS IN .js CODE JUST LIKE PROP OF A js OBJECT,
|
|
219
|
+
// the prop name after dot: commandArgs.Root
|
|
220
|
+
// or in square braces and quotes: commandArgs["Root"]
|
|
221
|
+
|
|
222
|
+
let resolvedSitesToolPath: any = path.resolve (
|
|
223
|
+
commandArgs.Root,
|
|
224
|
+
commandArgs["sitesToolPath"]
|
|
225
|
+
);
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
// OTHER CODE ...
|
|
230
|
+
let retVal: number = 2;
|
|
25
231
|
|
|
232
|
+
/**
|
|
233
|
+
Programm code ...
|
|
234
|
+
*/
|
|
235
|
+
|
|
236
|
+
return retVal;
|
|
237
|
+
}
|
|
26
238
|
|
|
27
|
-
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
// A ts OR js CODE LINE,
|
|
242
|
+
// NOT IN A CLASS OR FUNCTION DEFINITION,
|
|
243
|
+
// INVOKES AT ONCE WHEN A .js IS INVOKED IN CONSOLE VIA node
|
|
28
244
|
|
|
245
|
+
// $_ node invokeJsInConsoleExample.js --Root="/home/user/MyProject" --sitesToolPath="sites_tools/SitesTool"
|
|
29
246
|
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
// Invokes function,
|
|
250
|
+
// defined here on Line 14: function invokeJsInConsoleExample()
|
|
30
251
|
|
|
31
|
-
|
|
252
|
+
let retVal: number = invokeJsInConsoleExample();
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
// END OF .ts EXAMPLE
|
|
257
|
+
```
|
|
32
258
|
|
|
259
|
+
---
|
|
33
260
|
|
|
34
261
|
|
|
35
|
-
## package structure
|
|
36
262
|
|
|
37
263
|
|
|
264
|
+
Have a nice day.
|
|
265
|
+
|
|
266
|
+
Elias, Software Architect of Jaisocx Company
|
|
38
267
|
|
|
39
268
|
|
|
40
269
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jaisocx/command-line",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"author": "Jaisocx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"command",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"transpiled/CommonJS",
|
|
23
23
|
"transpiled/ESNext",
|
|
24
24
|
|
|
25
|
+
"software_labels",
|
|
25
26
|
"README.md"
|
|
26
27
|
],
|
|
27
28
|
"publishConfig": {
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
<!-- Jaisocx badge -->
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
<svg
|
|
6
|
+
height="23"
|
|
7
|
+
width="253"
|
|
8
|
+
fill="#222222"
|
|
9
|
+
xmlns="http://www.w3.org/2000/svg" >
|
|
10
|
+
|
|
11
|
+
<title>Jaisocx 3.0.16</title>
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
<g>
|
|
16
|
+
|
|
17
|
+
<rect
|
|
18
|
+
x="3"
|
|
19
|
+
y="3"
|
|
20
|
+
width="250"
|
|
21
|
+
height="20"
|
|
22
|
+
fill="#ddd"
|
|
23
|
+
rx="3"
|
|
24
|
+
ry="3"
|
|
25
|
+
/>
|
|
26
|
+
|
|
27
|
+
<rect
|
|
28
|
+
x="1"
|
|
29
|
+
y="1"
|
|
30
|
+
width="20"
|
|
31
|
+
height="20"
|
|
32
|
+
fill="navy"
|
|
33
|
+
/>
|
|
34
|
+
|
|
35
|
+
<rect
|
|
36
|
+
x="21"
|
|
37
|
+
y="1"
|
|
38
|
+
width="140"
|
|
39
|
+
height="20"
|
|
40
|
+
fill="navy"
|
|
41
|
+
/>
|
|
42
|
+
|
|
43
|
+
<rect
|
|
44
|
+
x="161"
|
|
45
|
+
y="1"
|
|
46
|
+
width="90"
|
|
47
|
+
height="20"
|
|
48
|
+
fill="#239"
|
|
49
|
+
/>
|
|
50
|
+
|
|
51
|
+
</g>
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
<g
|
|
56
|
+
font-family="Verdana,Geneva,DejaVu Sans,sans-serif"
|
|
57
|
+
text-rendering="geometricPrecision"
|
|
58
|
+
font-size="129"
|
|
59
|
+
transform="scale(0.1)"
|
|
60
|
+
>
|
|
61
|
+
|
|
62
|
+
<text
|
|
63
|
+
x="320"
|
|
64
|
+
y="148"
|
|
65
|
+
fill="#c5c5c5"
|
|
66
|
+
textLength="490" >
|
|
67
|
+
Jaisocx
|
|
68
|
+
</text>
|
|
69
|
+
|
|
70
|
+
<text
|
|
71
|
+
x="1780"
|
|
72
|
+
y="148"
|
|
73
|
+
fill="#e5e5e5"
|
|
74
|
+
textLength="400" >
|
|
75
|
+
3.0.16
|
|
76
|
+
</text>
|
|
77
|
+
|
|
78
|
+
</g>
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
|
83
|
+
x="6"
|
|
84
|
+
y="1"
|
|
85
|
+
width="19" height="19"
|
|
86
|
+
viewBox="0 0 19.0 19.0"
|
|
87
|
+
preserveAspectRatio="xMidYMid meet" >
|
|
88
|
+
|
|
89
|
+
<g
|
|
90
|
+
transform="translate(0.000,18) scale(0.00190,-0.0019)"
|
|
91
|
+
fill="#ace"
|
|
92
|
+
stroke="white" >
|
|
93
|
+
|
|
94
|
+
<path d="M2880 6941 c-503 -291 -1214 -702 -1580 -913 l-665 -384 -3 -1831 -2
|
|
95
|
+
-1832 92 -54 c51 -30 149 -87 218 -127 625 -361 706 -408 747 -431 21 -12 90
|
|
96
|
+
-52 153 -88 63 -37 180 -105 260 -151 80 -46 192 -111 250 -145 58 -34 125
|
|
97
|
+
-73 150 -87 69 -38 365 -209 453 -262 43 -25 80 -46 82 -46 2 0 47 -26 102
|
|
98
|
+
-58 54 -32 118 -70 143 -84 25 -14 133 -76 240 -138 107 -62 214 -124 238
|
|
99
|
+
-138 l42 -24 128 75 c70 41 148 86 173 101 26 14 99 57 164 96 65 38 120 70
|
|
100
|
+
122 70 3 0 53 29 112 63 58 35 198 117 311 182 113 65 252 146 310 180 58 35
|
|
101
|
+
123 73 145 85 59 33 279 161 455 265 85 50 162 94 170 98 17 8 30 16 215 128
|
|
102
|
+
72 43 136 79 143 79 7 0 12 4 12 9 0 5 8 11 18 15 9 3 42 22 72 41 30 19 63
|
|
103
|
+
38 73 41 9 4 17 10 17 15 0 5 7 9 15 9 9 0 18 7 21 15 4 8 12 15 18 15 7 0 20
|
|
104
|
+
6 29 13 16 11 17 145 17 2067 l0 2055 -47 33 c-44 30 -229 142 -398 240 -38
|
|
105
|
+
23 -71 40 -73 38 -5 -6 -12 -1547 -12 -2687 l0 -964 -86 -50 c-114 -66 -119
|
|
106
|
+
-69 -264 -152 -69 -39 -171 -98 -228 -132 -57 -34 -105 -61 -107 -61 -2 0 -36
|
|
107
|
+
-19 -77 -43 -40 -24 -93 -55 -118 -69 -25 -14 -119 -68 -210 -120 -254 -146
|
|
108
|
+
-829 -477 -978 -562 -74 -42 -139 -76 -146 -76 -6 0 -63 30 -126 66 -235 135
|
|
109
|
+
-398 229 -510 295 -63 36 -131 76 -150 86 -19 11 -123 71 -230 133 -107 62
|
|
110
|
+
-251 146 -320 186 -69 39 -198 114 -286 165 -89 52 -263 153 -388 224 -213
|
|
111
|
+
123 -226 132 -232 164 -4 19 -4 323 0 675 5 478 10 643 19 649 7 4 75 44 152
|
|
112
|
+
88 77 45 212 123 300 174 427 248 544 315 549 315 3 0 7 -306 8 -681 l3 -681
|
|
113
|
+
130 -75 c72 -42 186 -108 255 -148 69 -39 184 -105 255 -147 72 -41 195 -112
|
|
114
|
+
275 -158 80 -46 178 -103 218 -127 40 -23 77 -43 81 -43 9 0 42 19 336 190
|
|
115
|
+
260 152 708 412 755 438 25 14 62 36 84 50 l39 24 -7 1826 -7 1827 -87 51
|
|
116
|
+
c-238 139 -1111 644 -1114 644 -2 0 -415 -238 -918 -529z m3650 -5141 c0 -5
|
|
117
|
+
-4 -10 -10 -10 -5 0 -10 5 -10 10 0 6 5 10 10 10 6 0 10 -4 10 -10z"
|
|
118
|
+
/>
|
|
119
|
+
</g>
|
|
120
|
+
</svg>
|
|
121
|
+
|
|
122
|
+
</svg>
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
@@ -4,7 +4,8 @@ export declare class CommandLineArgs implements CommandLineArgsInterface {
|
|
|
4
4
|
protected _commandLineArgs: object;
|
|
5
5
|
constructor();
|
|
6
6
|
getCommandLineArgs(): object;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
getAfterReadNTransformed(): object;
|
|
8
|
+
readCommandLineArgs(): CommandLineArgsInterface;
|
|
9
|
+
transformCommandLineArgs(): CommandLineArgsInterface;
|
|
9
10
|
}
|
|
10
11
|
//# sourceMappingURL=CommandLineArgs.d.ts.map
|
|
@@ -1 +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,
|
|
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,wBAAwB,IAAI,MAAM;IAYlC,mBAAmB,IAAI,wBAAwB;IA0B/C,wBAAwB,IAAI,wBAAwB;CA0C5D"}
|
|
@@ -9,6 +9,13 @@ class CommandLineArgs {
|
|
|
9
9
|
getCommandLineArgs() {
|
|
10
10
|
return this._commandLineArgs;
|
|
11
11
|
}
|
|
12
|
+
getAfterReadNTransformed() {
|
|
13
|
+
let commandArgs = this
|
|
14
|
+
.readCommandLineArgs()
|
|
15
|
+
.transformCommandLineArgs()
|
|
16
|
+
.getCommandLineArgs();
|
|
17
|
+
return commandArgs;
|
|
18
|
+
}
|
|
12
19
|
readCommandLineArgs() {
|
|
13
20
|
// Get command-line arguments
|
|
14
21
|
// and set to protected property of this ts class.
|
|
@@ -1 +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;;;;;;;;;;MAU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AC;QAErC,CAAC,CAAC,CAAC;QAGH,OAAO,IAAI,CAAC;IACd,CAAC;CAEF;AApGD,0CAoGC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CommandLineArgs } from "./CommandLineArgs.js";
|
|
2
1
|
export interface CommandLineArgsInterface {
|
|
3
2
|
getCommandLineArgs(): object;
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
getAfterReadNTransformed(): object;
|
|
4
|
+
readCommandLineArgs(): CommandLineArgsInterface;
|
|
5
|
+
transformCommandLineArgs(): CommandLineArgsInterface;
|
|
6
6
|
}
|
|
7
7
|
//# sourceMappingURL=CommandLineArgsInterface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandLineArgsInterface.d.ts","sourceRoot":"","sources":["../../src/CommandLineArgsInterface.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"CommandLineArgsInterface.d.ts","sourceRoot":"","sources":["../../src/CommandLineArgsInterface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IAEvC,kBAAkB,IAAI,MAAM,CAAC;IAE7B,wBAAwB,IAAI,MAAM,CAAC;IAEnC,mBAAmB,IAAI,wBAAwB,CAAC;IAchD,wBAAwB,IAAI,wBAAwB,CAAC;CACtD"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
export { CommandLineArgsInterface } from "./CommandLineArgsInterface.js";
|
|
2
2
|
export { CommandLineArgs } from "./CommandLineArgs.js";
|
|
3
|
-
export { CommandArgsObjectExample } from "./example/CommandArgsObjectExample.js";
|
|
4
|
-
export { invokeJsClassExample } from "./example/invokeJsClassExample.js";
|
|
5
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +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
|
|
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"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.CommandLineArgs = void 0;
|
|
4
4
|
var CommandLineArgs_js_1 = require("./CommandLineArgs.js");
|
|
5
5
|
Object.defineProperty(exports, "CommandLineArgs", { enumerable: true, get: function () { return CommandLineArgs_js_1.CommandLineArgs; } });
|
|
6
|
-
var invokeJsClassExample_js_1 = require("./example/invokeJsClassExample.js");
|
|
7
|
-
Object.defineProperty(exports, "invokeJsClassExample", { enumerable: true, get: function () { return invokeJsClassExample_js_1.invokeJsClassExample; } });
|
|
8
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AACA,2DAAuD;AAA9C,qHAAA,eAAe,OAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AACA,2DAAuD;AAA9C,qHAAA,eAAe,OAAA"}
|
|
@@ -4,7 +4,8 @@ export declare class CommandLineArgs implements CommandLineArgsInterface {
|
|
|
4
4
|
protected _commandLineArgs: object;
|
|
5
5
|
constructor();
|
|
6
6
|
getCommandLineArgs(): object;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
getAfterReadNTransformed(): object;
|
|
8
|
+
readCommandLineArgs(): CommandLineArgsInterface;
|
|
9
|
+
transformCommandLineArgs(): CommandLineArgsInterface;
|
|
9
10
|
}
|
|
10
11
|
//# sourceMappingURL=CommandLineArgs.d.ts.map
|
|
@@ -1 +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,
|
|
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,wBAAwB,IAAI,MAAM;IAYlC,mBAAmB,IAAI,wBAAwB;IA0B/C,wBAAwB,IAAI,wBAAwB;CA0C5D"}
|
|
@@ -8,6 +8,13 @@ export class CommandLineArgs {
|
|
|
8
8
|
getCommandLineArgs() {
|
|
9
9
|
return this._commandLineArgs;
|
|
10
10
|
}
|
|
11
|
+
getAfterReadNTransformed() {
|
|
12
|
+
let commandArgs = this
|
|
13
|
+
.readCommandLineArgs()
|
|
14
|
+
.transformCommandLineArgs()
|
|
15
|
+
.getCommandLineArgs();
|
|
16
|
+
return commandArgs;
|
|
17
|
+
}
|
|
11
18
|
readCommandLineArgs() {
|
|
12
19
|
// Get command-line arguments
|
|
13
20
|
// and set to protected property of this ts class.
|
|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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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CommandLineArgs } from "./CommandLineArgs.js";
|
|
2
1
|
export interface CommandLineArgsInterface {
|
|
3
2
|
getCommandLineArgs(): object;
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
getAfterReadNTransformed(): object;
|
|
4
|
+
readCommandLineArgs(): CommandLineArgsInterface;
|
|
5
|
+
transformCommandLineArgs(): CommandLineArgsInterface;
|
|
6
6
|
}
|
|
7
7
|
//# sourceMappingURL=CommandLineArgsInterface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandLineArgsInterface.d.ts","sourceRoot":"","sources":["../../src/CommandLineArgsInterface.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"CommandLineArgsInterface.d.ts","sourceRoot":"","sources":["../../src/CommandLineArgsInterface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IAEvC,kBAAkB,IAAI,MAAM,CAAC;IAE7B,wBAAwB,IAAI,MAAM,CAAC;IAEnC,mBAAmB,IAAI,wBAAwB,CAAC;IAchD,wBAAwB,IAAI,wBAAwB,CAAC;CACtD"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
export { CommandLineArgsInterface } from "./CommandLineArgsInterface.js";
|
|
2
2
|
export { CommandLineArgs } from "./CommandLineArgs.js";
|
|
3
|
-
export { CommandArgsObjectExample } from "./example/CommandArgsObjectExample.js";
|
|
4
|
-
export { invokeJsClassExample } from "./example/invokeJsClassExample.js";
|
|
5
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +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
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC"}
|