@tauri-apps/cli 1.0.5 → 1.1.0
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 +32 -1
- package/Cargo.toml +2 -2
- package/README.md +7 -9
- package/build.rs +1 -1
- package/package.json +13 -13
- package/schema.json +100 -10
- package/src/lib.rs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## \[1.1.0]
|
|
4
|
+
|
|
5
|
+
- Allow adding `build > beforeBundleCommand` in tauri.conf.json to run a shell command before the bundling phase.
|
|
6
|
+
- [57ab9847](https://www.github.com/tauri-apps/tauri/commit/57ab9847eb2d8c9a5da584b873b7c072e9ee26bf) feat(cli): add `beforeBundleCommand`, closes [#4879](https://www.github.com/tauri-apps/tauri/pull/4879) ([#4893](https://www.github.com/tauri-apps/tauri/pull/4893)) on 2022-08-09
|
|
7
|
+
- Change `before_dev_command` and `before_build_command` config value to allow configuring the current working directory.
|
|
8
|
+
- [d6f7d3cf](https://www.github.com/tauri-apps/tauri/commit/d6f7d3cfe8a7ec8d68c8341016c4e0a3103da587) Add cwd option to `before` commands, add wait option to dev [#4740](https://www.github.com/tauri-apps/tauri/pull/4740) [#3551](https://www.github.com/tauri-apps/tauri/pull/3551) ([#4834](https://www.github.com/tauri-apps/tauri/pull/4834)) on 2022-08-02
|
|
9
|
+
- Allow configuring the `before_dev_command` to force the CLI to wait for the command to finish before proceeding.
|
|
10
|
+
- [d6f7d3cf](https://www.github.com/tauri-apps/tauri/commit/d6f7d3cfe8a7ec8d68c8341016c4e0a3103da587) Add cwd option to `before` commands, add wait option to dev [#4740](https://www.github.com/tauri-apps/tauri/pull/4740) [#3551](https://www.github.com/tauri-apps/tauri/pull/3551) ([#4834](https://www.github.com/tauri-apps/tauri/pull/4834)) on 2022-08-02
|
|
11
|
+
- Check if the default build target is set in the Cargo configuration.
|
|
12
|
+
- [436f3d8d](https://www.github.com/tauri-apps/tauri/commit/436f3d8d66727f5b64165522f0b55f4ab54bd1ae) feat(cli): load Cargo configuration to check default build target ([#4990](https://www.github.com/tauri-apps/tauri/pull/4990)) on 2022-08-21
|
|
13
|
+
- Use `cargo metadata` to detect the workspace root and target directory.
|
|
14
|
+
- [fea70eff](https://www.github.com/tauri-apps/tauri/commit/fea70effad219c0794d919f8834fa1a1ffd204c7) refactor(cli): Use `cargo metadata` to detect the workspace root and target directory, closes [#4632](https://www.github.com/tauri-apps/tauri/pull/4632), [#4928](https://www.github.com/tauri-apps/tauri/pull/4928). ([#4932](https://www.github.com/tauri-apps/tauri/pull/4932)) on 2022-08-21
|
|
15
|
+
- Prompt for `beforeDevCommand` and `beforeBuildCommand` in `tauri init`.
|
|
16
|
+
- [6d4945c9](https://www.github.com/tauri-apps/tauri/commit/6d4945c9f06cd1f7018e1c48686ba682aae817df) feat(cli): prompt for before\*Command, closes [#4691](https://www.github.com/tauri-apps/tauri/pull/4691) ([#4721](https://www.github.com/tauri-apps/tauri/pull/4721)) on 2022-07-25
|
|
17
|
+
- Added support to configuration files in TOML format (Tauri.toml file).
|
|
18
|
+
- [ae83d008](https://www.github.com/tauri-apps/tauri/commit/ae83d008f9e1b89bfc8dddaca42aa5c1fbc36f6d) feat: add support to TOML config file `Tauri.toml`, closes [#4806](https://www.github.com/tauri-apps/tauri/pull/4806) ([#4813](https://www.github.com/tauri-apps/tauri/pull/4813)) on 2022-08-02
|
|
19
|
+
- Automatically use any `.taurignore` file as ignore rules for dev watcher and app path finder.
|
|
20
|
+
- [596fa08d](https://www.github.com/tauri-apps/tauri/commit/596fa08d48e371c7bd29e1ef799119ac8fca0d0b) feat(cli): automatically use `.taurignore`, ref [#4617](https://www.github.com/tauri-apps/tauri/pull/4617) ([#4623](https://www.github.com/tauri-apps/tauri/pull/4623)) on 2022-07-28
|
|
21
|
+
- Enable WiX FIPS compliance when the `TAURI_FIPS_COMPLIANT` environment variable is set to `true`.
|
|
22
|
+
- [d88b9de7](https://www.github.com/tauri-apps/tauri/commit/d88b9de7aaeaaa2e42e4795dbc2b8642b5ae7a50) feat(core): add `fips_compliant` wix config option, closes [#4541](https://www.github.com/tauri-apps/tauri/pull/4541) ([#4843](https://www.github.com/tauri-apps/tauri/pull/4843)) on 2022-08-04
|
|
23
|
+
- Fixes dev watcher incorrectly exiting the CLI when sequential file updates are detected.
|
|
24
|
+
- [47fab680](https://www.github.com/tauri-apps/tauri/commit/47fab6809a1e23b3b9a84695e2d91ff0826ba79a) fix(cli): dev watcher incorrectly killing process on multiple file write ([#4684](https://www.github.com/tauri-apps/tauri/pull/4684)) on 2022-07-25
|
|
25
|
+
- Add `libc` field to Node packages.
|
|
26
|
+
- [f7d2dfc7](https://www.github.com/tauri-apps/tauri/commit/f7d2dfc7a6d086dd1a218d6c1492b3fef8a64f03) chore: add libc field to node packages ([#4856](https://www.github.com/tauri-apps/tauri/pull/4856)) on 2022-08-04
|
|
27
|
+
- Set the `MACOSX_DEPLOYMENT_TARGET` environment variable with the configuration `minimum_system_version` value.
|
|
28
|
+
- [fa23310f](https://www.github.com/tauri-apps/tauri/commit/fa23310f23cb9e6a02ec2524f1ef394a5b42990e) fix(cli): set MACOSX_DEPLOYMENT_TARGET env var, closes [#4704](https://www.github.com/tauri-apps/tauri/pull/4704) ([#4842](https://www.github.com/tauri-apps/tauri/pull/4842)) on 2022-08-02
|
|
29
|
+
- Added `--no-watch` argument to the `dev` command to disable the file watcher.
|
|
30
|
+
- [0983d7ce](https://www.github.com/tauri-apps/tauri/commit/0983d7ce7f24ab43f9ae7b5e1177ff244d8885a8) feat(cli): add `--no-watch` argument to the dev command, closes [#4617](https://www.github.com/tauri-apps/tauri/pull/4617) ([#4793](https://www.github.com/tauri-apps/tauri/pull/4793)) on 2022-07-29
|
|
31
|
+
- Validate updater signature matches configured public key.
|
|
32
|
+
- [b2a8930b](https://www.github.com/tauri-apps/tauri/commit/b2a8930b3c4b72c50ce72e73575f42c9cbe91bad) feat(cli): validate updater private key when signing ([#4754](https://www.github.com/tauri-apps/tauri/pull/4754)) on 2022-07-25
|
|
33
|
+
|
|
3
34
|
## \[1.0.5]
|
|
4
35
|
|
|
5
36
|
- Correctly fill the architecture when building Debian packages targeting ARM64 (aarch64).
|
|
@@ -41,7 +72,7 @@
|
|
|
41
72
|
This only works with recent versions of `libappindicator-sys` (including https://github.com/tauri-apps/libappindicator-rs/pull/38),
|
|
42
73
|
so a `cargo update` may be necessary if you create `.deb` bundles and use the tray feature.
|
|
43
74
|
- [0e6edeb1](https://www.github.com/tauri-apps/tauri/commit/0e6edeb14f379af1e02a7cebb4e3a5c9e87ebf7f) fix(cli): Don't add `pkg-config` to `deb` ([#4508](https://www.github.com/tauri-apps/tauri/pull/4508)) on 2022-06-29
|
|
44
|
-
- AppImage bundling will now prefer bundling correctly named
|
|
75
|
+
- AppImage bundling will now prefer bundling correctly named appindicator library (including `.1` version suffix). With a symlink for compatibility with the old naming.
|
|
45
76
|
- [bf45ca1d](https://www.github.com/tauri-apps/tauri/commit/bf45ca1df6691c05bdf72c5716cc01e89a7791d4) fix(cli,bundler): prefer AppImage libraries with ABI version ([#4505](https://www.github.com/tauri-apps/tauri/pull/4505)) on 2022-06-29
|
|
46
77
|
- Improve error message when `cargo` is not installed.
|
|
47
78
|
- [e0e5f772](https://www.github.com/tauri-apps/tauri/commit/e0e5f772430f6349ec99ba891e601331e376e3c7) feat(cli): improve `cargo not found` error message, closes [#4428](https://www.github.com/tauri-apps/tauri/pull/4428) ([#4430](https://www.github.com/tauri-apps/tauri/pull/4430)) on 2022-06-21
|
package/Cargo.toml
CHANGED
|
@@ -8,8 +8,8 @@ crate-type = ["cdylib"]
|
|
|
8
8
|
|
|
9
9
|
[dependencies]
|
|
10
10
|
# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
|
|
11
|
-
napi = { version = "2.
|
|
12
|
-
napi-derive = "2.
|
|
11
|
+
napi = { version = "2.9", default-features = false, features = ["napi4"] }
|
|
12
|
+
napi-derive = "2.9"
|
|
13
13
|
tauri-cli = { path = ".." }
|
|
14
14
|
log = "0.4.17"
|
|
15
15
|
|
package/README.md
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
# @tauri-apps/cli
|
|
2
2
|
<img align="right" src="https://github.com/tauri-apps/tauri/raw/dev/app-icon.png" height="128" width="128">
|
|
3
3
|
|
|
4
|
-
[
|
|
10
|
-
[](https://tauri.app)
|
|
11
|
-
|
|
4
|
+
[](https://github.com/tauri-apps/tauri/tree/dev)
|
|
5
|
+
[](https://opencollective.com/tauri)
|
|
6
|
+
[](https://github.com/tauri-apps/tauri/actions?query=workflow%3A%22test+library%22)
|
|
7
|
+
[](https://app.fossa.com/projects/git%2Bgithub.com%2Ftauri-apps%2Ftauri?ref=badge_shield)
|
|
8
|
+
[](https://discord.gg/SpmNs4S)
|
|
9
|
+
[](https://tauri.app)
|
|
12
10
|
[](https://good-labs.github.io/greater-good-affirmation)
|
|
13
|
-
[](https://opencollective.com/tauri)
|
|
14
12
|
|
|
15
13
|
| Component | Version |
|
|
16
14
|
| --------- | ------------------------------------------- |
|
package/build.rs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tauri-apps/cli",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Command line interface for building Tauri apps",
|
|
5
5
|
"funding": {
|
|
6
6
|
"type": "opencollective",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@napi-rs/cli": "2.
|
|
40
|
+
"@napi-rs/cli": "2.11.4",
|
|
41
41
|
"cross-env": "7.0.3",
|
|
42
42
|
"cross-spawn": "7.0.3",
|
|
43
43
|
"fs-extra": "10.1.0",
|
|
44
|
-
"jest": "28.1.
|
|
44
|
+
"jest": "28.1.3",
|
|
45
45
|
"jest-transform-toml": "1.0.0",
|
|
46
46
|
"prettier": "2.7.1"
|
|
47
47
|
},
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"artifacts": "napi artifacts",
|
|
56
56
|
"build:release": "cross-env TARGET=node napi build --platform --release",
|
|
57
57
|
"build": "cross-env TARGET=node napi build --platform",
|
|
58
|
-
"prepublishOnly": "napi prepublish -t npm",
|
|
58
|
+
"prepublishOnly": "napi prepublish -t npm --gh-release-id $RELEASE_ID",
|
|
59
59
|
"prepack": "cp ../schema.json .",
|
|
60
60
|
"test": "jest --runInBand --forceExit --no-cache",
|
|
61
61
|
"version": "napi version",
|
|
@@ -64,14 +64,14 @@
|
|
|
64
64
|
"format:check": "prettier --check ./package.json ./tauri.js"
|
|
65
65
|
},
|
|
66
66
|
"optionalDependencies": {
|
|
67
|
-
"@tauri-apps/cli-win32-x64-msvc": "1.0
|
|
68
|
-
"@tauri-apps/cli-darwin-x64": "1.0
|
|
69
|
-
"@tauri-apps/cli-linux-x64-gnu": "1.0
|
|
70
|
-
"@tauri-apps/cli-darwin-arm64": "1.0
|
|
71
|
-
"@tauri-apps/cli-linux-arm64-gnu": "1.0
|
|
72
|
-
"@tauri-apps/cli-linux-arm64-musl": "1.0
|
|
73
|
-
"@tauri-apps/cli-linux-arm-gnueabihf": "1.0
|
|
74
|
-
"@tauri-apps/cli-linux-x64-musl": "1.0
|
|
75
|
-
"@tauri-apps/cli-win32-ia32-msvc": "1.0
|
|
67
|
+
"@tauri-apps/cli-win32-x64-msvc": "1.1.0",
|
|
68
|
+
"@tauri-apps/cli-darwin-x64": "1.1.0",
|
|
69
|
+
"@tauri-apps/cli-linux-x64-gnu": "1.1.0",
|
|
70
|
+
"@tauri-apps/cli-darwin-arm64": "1.1.0",
|
|
71
|
+
"@tauri-apps/cli-linux-arm64-gnu": "1.1.0",
|
|
72
|
+
"@tauri-apps/cli-linux-arm64-musl": "1.1.0",
|
|
73
|
+
"@tauri-apps/cli-linux-arm-gnueabihf": "1.1.0",
|
|
74
|
+
"@tauri-apps/cli-linux-x64-musl": "1.1.0",
|
|
75
|
+
"@tauri-apps/cli-win32-ia32-msvc": "1.1.0"
|
|
76
76
|
}
|
|
77
77
|
}
|
package/schema.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
3
|
"title": "Config",
|
|
4
|
-
"description": "The
|
|
4
|
+
"description": "The Tauri configuration object. It is read from a file where you can define your frontend assets, configure the bundler, enable the app updater, define a system tray, enable APIs via the allowlist and more.\n\nThe configuration file is generated by the [`tauri init`](https://tauri.app/v1/api/cli#init) command that lives in your Tauri application source directory (src-tauri).\n\nOnce generated, you may modify it at will to customize your Tauri application.\n\n## File Formats\n\nBy default, the configuration is defined as a JSON file named `tauri.conf.json`.\n\nTauri also supports JSON5 and TOML files via the `config-json5` and `config-toml` Cargo features, respectively. The JSON5 file name must be either `tauri.conf.json` or `tauri.conf.json5`. The TOML file name is `Tauri.toml`.\n\n## Platform-Specific Configuration\n\nIn addition to the default configuration file, Tauri can read a platform-specific configuration from `tauri.linux.conf.json`, `tauri.windows.conf.json`, and `tauri.macos.conf.json` (or `Tauri.linux.toml`, `Tauri.windows.toml` and `Tauri.macos.toml` if the `Tauri.toml` format is used), which gets merged with the main configuration object.\n\n## Configuration Structure\n\nThe configuration is composed of the following objects:\n\n- [`package`](#packageconfig): Package settings - [`tauri`](#tauriconfig): The Tauri config - [`build`](#buildconfig): The build configuration - [`plugins`](#pluginconfig): The plugins config\n\n```json title=\"Example tauri.config.json file\" { \"build\": { \"beforeBuildCommand\": \"\", \"beforeDevCommand\": \"\", \"devPath\": \"../dist\", \"distDir\": \"../dist\" }, \"package\": { \"productName\": \"tauri-app\", \"version\": \"0.1.0\" }, \"tauri\": { \"allowlist\": { \"all\": true }, \"bundle\": {}, \"security\": { \"csp\": null }, \"updater\": { \"active\": false }, \"windows\": [ { \"fullscreen\": false, \"height\": 600, \"resizable\": true, \"title\": \"Tauri App\", \"width\": 800 } ] } } ```",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"$schema": {
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"all": false,
|
|
46
46
|
"copyFile": false,
|
|
47
47
|
"createDir": false,
|
|
48
|
+
"exists": false,
|
|
48
49
|
"readDir": false,
|
|
49
50
|
"readFile": false,
|
|
50
51
|
"removeDir": false,
|
|
@@ -205,7 +206,7 @@
|
|
|
205
206
|
]
|
|
206
207
|
},
|
|
207
208
|
"version": {
|
|
208
|
-
"description": "App version. It is a semver version number or a path to a `package.json` file
|
|
209
|
+
"description": "App version. It is a semver version number or a path to a `package.json` file containing the `version` field.",
|
|
209
210
|
"default": null,
|
|
210
211
|
"type": [
|
|
211
212
|
"string",
|
|
@@ -306,6 +307,7 @@
|
|
|
306
307
|
"all": false,
|
|
307
308
|
"copyFile": false,
|
|
308
309
|
"createDir": false,
|
|
310
|
+
"exists": false,
|
|
309
311
|
"readDir": false,
|
|
310
312
|
"readFile": false,
|
|
311
313
|
"removeDir": false,
|
|
@@ -587,7 +589,7 @@
|
|
|
587
589
|
"type": "boolean"
|
|
588
590
|
},
|
|
589
591
|
"transparent": {
|
|
590
|
-
"description": "Whether the window is transparent or not.\n\nNote that on `macOS` this requires the `macos-private-api` feature flag, enabled under `tauri
|
|
592
|
+
"description": "Whether the window is transparent or not.\n\nNote that on `macOS` this requires the `macos-private-api` feature flag, enabled under `tauri > macOSPrivateApi`. WARNING: Using private APIs on `macOS` prevents your application from being accepted to the `App Store`.",
|
|
591
593
|
"default": false,
|
|
592
594
|
"type": "boolean"
|
|
593
595
|
},
|
|
@@ -1498,6 +1500,7 @@
|
|
|
1498
1500
|
"all": false,
|
|
1499
1501
|
"copyFile": false,
|
|
1500
1502
|
"createDir": false,
|
|
1503
|
+
"exists": false,
|
|
1501
1504
|
"readDir": false,
|
|
1502
1505
|
"readFile": false,
|
|
1503
1506
|
"removeDir": false,
|
|
@@ -1735,6 +1738,11 @@
|
|
|
1735
1738
|
"description": "Rename file from local filesystem.",
|
|
1736
1739
|
"default": false,
|
|
1737
1740
|
"type": "boolean"
|
|
1741
|
+
},
|
|
1742
|
+
"exists": {
|
|
1743
|
+
"description": "Check if path exists on the local filesystem.",
|
|
1744
|
+
"default": false,
|
|
1745
|
+
"type": "boolean"
|
|
1738
1746
|
}
|
|
1739
1747
|
},
|
|
1740
1748
|
"additionalProperties": false
|
|
@@ -2402,7 +2410,7 @@
|
|
|
2402
2410
|
],
|
|
2403
2411
|
"properties": {
|
|
2404
2412
|
"iconPath": {
|
|
2405
|
-
"description": "Path to the icon to use on the system tray
|
|
2413
|
+
"description": "Path to the default icon to use on the system tray.",
|
|
2406
2414
|
"type": "string"
|
|
2407
2415
|
},
|
|
2408
2416
|
"iconAsTemplate": {
|
|
@@ -2449,16 +2457,35 @@
|
|
|
2449
2457
|
},
|
|
2450
2458
|
"beforeDevCommand": {
|
|
2451
2459
|
"description": "A shell command to run before `tauri dev` kicks in.\n\nThe TAURI_PLATFORM, TAURI_ARCH, TAURI_FAMILY, TAURI_PLATFORM_VERSION, TAURI_PLATFORM_TYPE and TAURI_DEBUG environment variables are set if you perform conditional compilation.",
|
|
2452
|
-
"
|
|
2453
|
-
|
|
2454
|
-
|
|
2460
|
+
"anyOf": [
|
|
2461
|
+
{
|
|
2462
|
+
"$ref": "#/definitions/BeforeDevCommand"
|
|
2463
|
+
},
|
|
2464
|
+
{
|
|
2465
|
+
"type": "null"
|
|
2466
|
+
}
|
|
2455
2467
|
]
|
|
2456
2468
|
},
|
|
2457
2469
|
"beforeBuildCommand": {
|
|
2458
2470
|
"description": "A shell command to run before `tauri build` kicks in.\n\nThe TAURI_PLATFORM, TAURI_ARCH, TAURI_FAMILY, TAURI_PLATFORM_VERSION, TAURI_PLATFORM_TYPE and TAURI_DEBUG environment variables are set if you perform conditional compilation.",
|
|
2459
|
-
"
|
|
2460
|
-
|
|
2461
|
-
|
|
2471
|
+
"anyOf": [
|
|
2472
|
+
{
|
|
2473
|
+
"$ref": "#/definitions/HookCommand"
|
|
2474
|
+
},
|
|
2475
|
+
{
|
|
2476
|
+
"type": "null"
|
|
2477
|
+
}
|
|
2478
|
+
]
|
|
2479
|
+
},
|
|
2480
|
+
"beforeBundleCommand": {
|
|
2481
|
+
"description": "A shell command to run before the bundling phase in `tauri build` kicks in.\n\nThe TAURI_PLATFORM, TAURI_ARCH, TAURI_FAMILY, TAURI_PLATFORM_VERSION, TAURI_PLATFORM_TYPE and TAURI_DEBUG environment variables are set if you perform conditional compilation.",
|
|
2482
|
+
"anyOf": [
|
|
2483
|
+
{
|
|
2484
|
+
"$ref": "#/definitions/HookCommand"
|
|
2485
|
+
},
|
|
2486
|
+
{
|
|
2487
|
+
"type": "null"
|
|
2488
|
+
}
|
|
2462
2489
|
]
|
|
2463
2490
|
},
|
|
2464
2491
|
"features": {
|
|
@@ -2499,6 +2526,69 @@
|
|
|
2499
2526
|
}
|
|
2500
2527
|
]
|
|
2501
2528
|
},
|
|
2529
|
+
"BeforeDevCommand": {
|
|
2530
|
+
"description": "Describes the shell command to run before `tauri dev`.",
|
|
2531
|
+
"anyOf": [
|
|
2532
|
+
{
|
|
2533
|
+
"description": "Run the given script with the default options.",
|
|
2534
|
+
"type": "string"
|
|
2535
|
+
},
|
|
2536
|
+
{
|
|
2537
|
+
"description": "Run the given script with custom options.",
|
|
2538
|
+
"type": "object",
|
|
2539
|
+
"required": [
|
|
2540
|
+
"script"
|
|
2541
|
+
],
|
|
2542
|
+
"properties": {
|
|
2543
|
+
"script": {
|
|
2544
|
+
"description": "The script to execute.",
|
|
2545
|
+
"type": "string"
|
|
2546
|
+
},
|
|
2547
|
+
"cwd": {
|
|
2548
|
+
"description": "The current working directory.",
|
|
2549
|
+
"type": [
|
|
2550
|
+
"string",
|
|
2551
|
+
"null"
|
|
2552
|
+
]
|
|
2553
|
+
},
|
|
2554
|
+
"wait": {
|
|
2555
|
+
"description": "Whether `tauri dev` should wait for the command to finish or not. Defaults to `false`.",
|
|
2556
|
+
"default": false,
|
|
2557
|
+
"type": "boolean"
|
|
2558
|
+
}
|
|
2559
|
+
}
|
|
2560
|
+
}
|
|
2561
|
+
]
|
|
2562
|
+
},
|
|
2563
|
+
"HookCommand": {
|
|
2564
|
+
"description": "Describes a shell command to be executed when a CLI hook is triggered.",
|
|
2565
|
+
"anyOf": [
|
|
2566
|
+
{
|
|
2567
|
+
"description": "Run the given script with the default options.",
|
|
2568
|
+
"type": "string"
|
|
2569
|
+
},
|
|
2570
|
+
{
|
|
2571
|
+
"description": "Run the given script with custom options.",
|
|
2572
|
+
"type": "object",
|
|
2573
|
+
"required": [
|
|
2574
|
+
"script"
|
|
2575
|
+
],
|
|
2576
|
+
"properties": {
|
|
2577
|
+
"script": {
|
|
2578
|
+
"description": "The script to execute.",
|
|
2579
|
+
"type": "string"
|
|
2580
|
+
},
|
|
2581
|
+
"cwd": {
|
|
2582
|
+
"description": "The current working directory.",
|
|
2583
|
+
"type": [
|
|
2584
|
+
"string",
|
|
2585
|
+
"null"
|
|
2586
|
+
]
|
|
2587
|
+
}
|
|
2588
|
+
}
|
|
2589
|
+
}
|
|
2590
|
+
]
|
|
2591
|
+
},
|
|
2502
2592
|
"PluginConfig": {
|
|
2503
2593
|
"description": "The plugin configs holds a HashMap mapping a plugin name to its configuration object.",
|
|
2504
2594
|
"type": "object",
|
package/src/lib.rs
CHANGED