numbl 0.0.20 → 0.0.21
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 +8 -0
- package/dist-cli/cli.js +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -53,6 +53,10 @@ Commands:
|
|
|
53
53
|
mip <subcommand> Package manager (install, uninstall, list, avail, info)
|
|
54
54
|
(no command) Start interactive REPL
|
|
55
55
|
|
|
56
|
+
Global options:
|
|
57
|
+
--version, -V Print version and exit
|
|
58
|
+
--help, -h Print this help message
|
|
59
|
+
|
|
56
60
|
Options (for REPL):
|
|
57
61
|
--plot Enable plot server
|
|
58
62
|
--plot-port <port> Set plot server port (implies --plot)
|
|
@@ -73,6 +77,10 @@ Environment variables:
|
|
|
73
77
|
```
|
|
74
78
|
<!-- END CLI HELP -->
|
|
75
79
|
|
|
80
|
+
## VS Code extension
|
|
81
|
+
|
|
82
|
+
The [Numbl extension for VS Code](https://marketplace.visualstudio.com/items?itemName=jmagland.numbl) lets you run `.m` scripts directly in the editor with inline error diagnostics and a built-in figure viewer.
|
|
83
|
+
|
|
76
84
|
## Upgrading
|
|
77
85
|
|
|
78
86
|
```bash
|
package/dist-cli/cli.js
CHANGED
|
@@ -47188,6 +47188,9 @@ Call stack (most recent call first):`;
|
|
|
47188
47188
|
return result;
|
|
47189
47189
|
}
|
|
47190
47190
|
|
|
47191
|
+
// src/numbl-core/version.ts
|
|
47192
|
+
var NUMBL_VERSION = "0.0.21";
|
|
47193
|
+
|
|
47191
47194
|
// src/cli-repl.ts
|
|
47192
47195
|
import { createInterface } from "readline";
|
|
47193
47196
|
import { readFileSync as readFileSync4, writeFileSync as writeFileSync2, appendFileSync } from "fs";
|
|
@@ -47982,6 +47985,10 @@ Commands:
|
|
|
47982
47985
|
mip <subcommand> Package manager (install, uninstall, list, avail, info)
|
|
47983
47986
|
(no command) Start interactive REPL
|
|
47984
47987
|
|
|
47988
|
+
Global options:
|
|
47989
|
+
--version, -V Print version and exit
|
|
47990
|
+
--help, -h Print this help message
|
|
47991
|
+
|
|
47985
47992
|
Options (for REPL):
|
|
47986
47993
|
--plot Enable plot server
|
|
47987
47994
|
--plot-port <port> Set plot server port (implies --plot)
|
|
@@ -48376,6 +48383,7 @@ async function cmdBuildAddon() {
|
|
|
48376
48383
|
function cmdInfo() {
|
|
48377
48384
|
process.stdout.write(
|
|
48378
48385
|
JSON.stringify({
|
|
48386
|
+
version: NUMBL_VERSION,
|
|
48379
48387
|
nativeAddon: nativeAddonLoaded,
|
|
48380
48388
|
nativeAddonPath: addonPath,
|
|
48381
48389
|
packageDir: packageDir2
|
|
@@ -48534,6 +48542,10 @@ function cmdShowProfile(args) {
|
|
|
48534
48542
|
}
|
|
48535
48543
|
async function main() {
|
|
48536
48544
|
const args = process.argv.slice(2);
|
|
48545
|
+
if (args.includes("--version") || args.includes("-V")) {
|
|
48546
|
+
console.log(NUMBL_VERSION);
|
|
48547
|
+
process.exit(0);
|
|
48548
|
+
}
|
|
48537
48549
|
if (args.includes("--help") || args.includes("-h")) {
|
|
48538
48550
|
printHelp();
|
|
48539
48551
|
process.exit(0);
|