You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/core/typescript/itk-wasm/package.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "itk-wasm",
3
-
"version": "1.0.0-b.164",
3
+
"version": "1.0.0-b.165",
4
4
"packageManager": "pnpm@8.11.0",
5
5
"description": "High-performance spatial analysis in a web browser, Node.js, and reproducible execution across programming languages and hardware architectures.",
Copy file name to clipboardExpand all lines: packages/core/typescript/itk-wasm/src/itk-wasm-cli.js
+73-71Lines changed: 73 additions & 71 deletions
Original file line number
Diff line number
Diff line change
@@ -12,83 +12,85 @@ import pnpmScript from './cli/pnpm-script.js'
12
12
13
13
importprogramfrom'./cli/program.js'
14
14
15
-
program
16
-
.option('-i, --image <image>','build environment Docker image, defaults to itkwasm/emscripten -- another common image is itkwasm/wasi')
17
-
.option('-s, --source-dir <source-directory>','path to source directory, defaults to "."')
18
-
.option('-b, --build-dir <build-directory>','build directory whose path is relative to the source directory, defaults to "wasi-build" for the "itkwasm/wasi" image and "emscripten-build" otherwise')
15
+
asyncfunctionmain(){
16
+
program
17
+
.option('-i, --image <image>','build environment Docker image, defaults to itkwasm/emscripten -- another common image is itkwasm/wasi')
18
+
.option('-s, --source-dir <source-directory>','path to source directory, defaults to "."')
19
+
.option('-b, --build-dir <build-directory>','build directory whose path is relative to the source directory, defaults to "wasi-build" for the "itkwasm/wasi" image and "emscripten-build" otherwise')
19
20
20
-
program
21
-
.command('build')
22
-
.usage('[-- <cmake arguments>]')
23
-
.description('build the CMake project found in the source directory')
24
-
.action(build)
21
+
program
22
+
.command('build')
23
+
.usage('[-- <cmake arguments>]')
24
+
.description('build the CMake project found in the source directory')
25
+
.action(build)
25
26
26
-
program
27
-
.command('test')
28
-
.option('-t, --test-dir <test-dir>','Subdirectory to run ctest in relative to the build directory.')
29
-
.usage('[-- <ctest arguments>]')
30
-
.description('Run the tests for the CMake project found in the build directory')
31
-
.action(test)
27
+
program
28
+
.command('test')
29
+
.option('-t, --test-dir <test-dir>','Subdirectory to run ctest in relative to the build directory.')
30
+
.usage('[-- <ctest arguments>]')
31
+
.description('Run the tests for the CMake project found in the build directory')
32
+
.action(test)
32
33
33
-
program
34
-
.command('run <wasmBinary>')
35
-
.addOption(newOption('-r, --runtime <wasm-runtime>','wasm runtime to use for execution, defaults to "wasmtime"').choices(['wasmtime','wasmer','wasm3','wavm']))
.description('run the wasm binary, whose path is specified relative to the build directory')
38
-
.action(run)
34
+
program
35
+
.command('run <wasmBinary>')
36
+
.addOption(newOption('-r, --runtime <wasm-runtime>','wasm runtime to use for execution, defaults to "wasmtime"').choices(['wasmtime','wasmer','wasm3','wavm']))
.description('run the wasm binary, whose path is specified relative to the build directory')
39
+
.action(run)
39
40
40
-
program
41
-
.command('bindgen')
42
-
.option('-o, --output-dir <output-dir>','Output directory name. Defaults to the interface option value.')
43
-
.requiredOption('-p, --package-name <package-name>','Output a package configuration files with the given packages name')
44
-
.requiredOption('-d, --package-description <package-description...>','Description for package')
45
-
.option('-v, --package-version <package-version>','Package version, e.g. "1.0.0"')
46
-
.addOption(newOption('--interface <interface>','interface to generate bindings for, defaults to "typescript". "python-web-demo" support is in progress.').choices(['typescript','python','python-web-demo']))
.option('-j, --js-module-url <js-module-url>','URL for the default hosted itk-wasm bindgen JS ESM module bundle. A JsDeliver is assumed by default.')
49
-
.usage('[options]')
50
-
.description('Generate language bindings or other interfaces for Wasm modules')
51
-
.action(bindgen)
41
+
program
42
+
.command('bindgen')
43
+
.option('-o, --output-dir <output-dir>','Output directory name. Defaults to the interface option value.')
44
+
.requiredOption('-p, --package-name <package-name>','Output a package configuration files with the given packages name')
45
+
.requiredOption('-d, --package-description <package-description...>','Description for package')
46
+
.option('-v, --package-version <package-version>','Package version, e.g. "1.0.0"')
47
+
.addOption(newOption('--interface <interface>','interface to generate bindings for, defaults to "typescript". "python-web-demo" support is in progress.').choices(['typescript','python','python-web-demo']))
0 commit comments