kuhul-es 1.0.7 → 1.0.10
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/New Text Document.txt +0 -0
- package/bin/kuhul-es.js +50 -57
- package/package.json +3 -2
|
File without changes
|
package/bin/kuhul-es.js
CHANGED
|
@@ -1,57 +1,50 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
║
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
.
|
|
17
|
-
.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
.
|
|
22
|
-
.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
.
|
|
29
|
-
.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
.
|
|
36
|
-
.
|
|
37
|
-
.option('--
|
|
38
|
-
.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
if (options.record)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
program.parse(process.argv);
|
|
54
|
-
|
|
55
|
-
if (!process.argv.slice(2).length) {
|
|
56
|
-
program.outputHelp();
|
|
57
|
-
}
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
// KUHUL-ES CLI
|
|
5
|
+
|
|
6
|
+
const { program } = require('commander');
|
|
7
|
+
|
|
8
|
+
console.log(`
|
|
9
|
+
╔══════════════════════════════════════╗
|
|
10
|
+
║ KUHUL-ES v1.0.10 ║
|
|
11
|
+
║ ECMAScript syntax, KUHUL semantics ║
|
|
12
|
+
╚══════════════════════════════════════╝
|
|
13
|
+
`);
|
|
14
|
+
|
|
15
|
+
program
|
|
16
|
+
.name('kuhul-es')
|
|
17
|
+
.description('KUHUL-ES - The Trojan Horse for KUHUL semantics')
|
|
18
|
+
.version('1.0.8');
|
|
19
|
+
|
|
20
|
+
program
|
|
21
|
+
.command('init [project-name]')
|
|
22
|
+
.description('Initialize a new KUHUL-ES project')
|
|
23
|
+
.action((projectName = 'my-kuhul-app') => {
|
|
24
|
+
console.log(`Creating project: ${projectName}`);
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
program
|
|
28
|
+
.command('compile <file>')
|
|
29
|
+
.description('Compile KUHUL-ES source file')
|
|
30
|
+
.action((file) => {
|
|
31
|
+
console.log(`Compiling: ${file}`);
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
program
|
|
35
|
+
.command('run <file>')
|
|
36
|
+
.description('Run a KUHUL-ES program')
|
|
37
|
+
.option('--record', 'Record deterministic execution trace')
|
|
38
|
+
.option('--replay <hash>', 'Replay from a recorded trace')
|
|
39
|
+
.action((file, options) => {
|
|
40
|
+
console.log(`▶ Running: ${file}`);
|
|
41
|
+
if (options.record) console.log('⏺ Recording execution');
|
|
42
|
+
if (options.replay) console.log(`⏮ Replaying ${options.replay}`);
|
|
43
|
+
console.log('✓ Execution complete (stub)');
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
program.parse(process.argv);
|
|
47
|
+
|
|
48
|
+
if (!process.argv.slice(2).length) {
|
|
49
|
+
program.outputHelp();
|
|
50
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kuhul-es",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"bin": {
|
|
6
6
|
"kuhul-es": "bin/kuhul-es.js"
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"node": ">=14"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"commander": "^14.0.2"
|
|
23
|
+
"commander": "^14.0.2",
|
|
24
|
+
"kuhul-es": "^1.0.9"
|
|
24
25
|
}
|
|
25
26
|
}
|