brsh 2.1.5 → 2.2.1
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/CHANGELOG.md +14 -0
- package/bin/brsh-shell.js +8 -0
- package/dist/shell.es.js +506 -306
- package/dist/shell.es.js.map +1 -1
- package/dist/shell.min.js +5 -4
- package/dist/shell.min.js.map +1 -1
- package/dist/terminal.es.js +465 -265
- package/dist/terminal.es.js.map +1 -1
- package/dist/terminal.min.js +8 -7
- package/dist/terminal.min.js.map +1 -1
- package/index.js +9 -0
- package/lib/Command.js +1 -2
- package/lib/ScriptCommand.js +279 -38
- package/lib/builtins/index.js +1 -0
- package/lib/builtins/printf.js +48 -0
- package/lib/local/read.js +10 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [2.2.1](https://github.com/eliotstocker/Brsh-JS/compare/v2.2.0...v2.2.1) (2026-05-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* script flushing and input issues ([7c5d583](https://github.com/eliotstocker/Brsh-JS/commit/7c5d583f23042c2457cbec967335c658e51916cc))
|
|
7
|
+
|
|
8
|
+
# [2.2.0](https://github.com/eliotstocker/Brsh-JS/compare/v2.1.5...v2.2.0) (2026-05-23)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* more scriptiing support ([48ce7ec](https://github.com/eliotstocker/Brsh-JS/commit/48ce7ec1fc9affef5a5767ed55664d67f63018f1))
|
|
14
|
+
|
|
1
15
|
## [2.1.5](https://github.com/eliotstocker/Brsh-JS/compare/v2.1.4...v2.1.5) (2026-05-22)
|
|
2
16
|
|
|
3
17
|
|
package/bin/brsh-shell.js
CHANGED
|
@@ -63,3 +63,11 @@ function ask() {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
rl.on('close', () => { if (!destroyed) process.exit(0); });
|
|
66
|
+
|
|
67
|
+
// Forward typed lines to commands waiting for input (e.g. `read`)
|
|
68
|
+
rl.on('line', function(line) {
|
|
69
|
+
if (shell.runningCommand && shell.runningCommand.captureInput) {
|
|
70
|
+
for (const char of line) { shell.onInput(char); }
|
|
71
|
+
shell.onInput('Enter');
|
|
72
|
+
}
|
|
73
|
+
});
|