c8ctl-plugin-nano 1.4.0 → 1.5.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/README.md +3 -0
- package/c8ctl-plugin.js +6 -4
- package/nanobpmn-binary.json +3 -3
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -94,6 +94,9 @@ c8ctl nano stop --purge
|
|
|
94
94
|
# Stop then start fresh
|
|
95
95
|
c8ctl nano restart 3
|
|
96
96
|
|
|
97
|
+
# Restart from a clean slate (delete engine data, keep models & workers)
|
|
98
|
+
c8ctl nano restart --purge
|
|
99
|
+
|
|
97
100
|
# Wipe journal/data + logs from disk (keeps models & workers)
|
|
98
101
|
c8ctl nano clean
|
|
99
102
|
|
package/c8ctl-plugin.js
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* c8ctl nano status
|
|
24
24
|
* c8ctl nano stop [--purge]
|
|
25
25
|
* c8ctl nano logs [<nodeId>] [--follow]
|
|
26
|
-
* c8ctl nano restart [<nodes>] ...
|
|
26
|
+
* c8ctl nano restart [<nodes>] [--purge] ...
|
|
27
27
|
*/
|
|
28
28
|
|
|
29
29
|
import { spawn, spawnSync } from 'node:child_process';
|
|
@@ -2364,6 +2364,8 @@ export const metadata = {
|
|
|
2364
2364
|
{ command: 'c8ctl nano logs 1 --follow', description: "Stream node 1's log" },
|
|
2365
2365
|
{ command: 'c8ctl nano stop', description: 'Stop the running cluster (keep data)' },
|
|
2366
2366
|
{ command: 'c8ctl nano stop --purge', description: 'Stop the cluster and delete engine data' },
|
|
2367
|
+
{ command: 'c8ctl nano restart', description: 'Stop and start the cluster (keep data)' },
|
|
2368
|
+
{ command: 'c8ctl nano restart --purge', description: 'Restart the cluster from a clean slate (delete engine data)' },
|
|
2367
2369
|
{ command: 'c8ctl nano clean', description: 'Wipe journal/data + logs on disk (keeps models/workers)' },
|
|
2368
2370
|
{ command: 'c8ctl nano set bin <path>', description: 'Set the nanobpmn server binary path' },
|
|
2369
2371
|
{ command: 'c8ctl nano set model-dir <path>', description: 'Set the workspace dir (models + workers)' },
|
|
@@ -2404,7 +2406,7 @@ export const commands = {
|
|
|
2404
2406
|
'no-journal': { type: 'boolean', description: 'start: alias for --in-memory' },
|
|
2405
2407
|
'history-max': { type: 'string', description: 'start: cap retained terminal instances in the read model (NANOBPMN_HISTORY_MAX_INSTANCES; 0/unset = unbounded)' },
|
|
2406
2408
|
follow: { type: 'boolean', description: 'logs: stream output (tail -F)', short: 'f' },
|
|
2407
|
-
purge: { type: 'boolean', description: 'stop: also delete per-node engine data' },
|
|
2409
|
+
purge: { type: 'boolean', description: 'stop/restart: also delete per-node engine data' },
|
|
2408
2410
|
force: { type: 'boolean', description: 'start: stop any existing cluster first' },
|
|
2409
2411
|
workspace: { type: 'boolean', description: 'clean: also delete the workspace (models + workers)' },
|
|
2410
2412
|
check: { type: 'boolean', description: 'update: only report whether a new release is available; do not install' },
|
|
@@ -2436,7 +2438,7 @@ export const commands = {
|
|
|
2436
2438
|
logsCluster(req);
|
|
2437
2439
|
break;
|
|
2438
2440
|
case 'restart':
|
|
2439
|
-
await stopCluster({ purge:
|
|
2441
|
+
await stopCluster({ purge: req.purge });
|
|
2440
2442
|
await startCluster({ ...req, force: true });
|
|
2441
2443
|
break;
|
|
2442
2444
|
case 'pause':
|
|
@@ -2540,7 +2542,7 @@ function printUsage() {
|
|
|
2540
2542
|
console.log(' c8ctl nano logs [<nodeId>] [--follow]');
|
|
2541
2543
|
console.log(' c8ctl nano pause <nodeId>');
|
|
2542
2544
|
console.log(' c8ctl nano resume <nodeId>');
|
|
2543
|
-
console.log(' c8ctl nano restart [<nodes>] ...');
|
|
2545
|
+
console.log(' c8ctl nano restart [<nodes>] [--purge] ...');
|
|
2544
2546
|
console.log(' c8ctl nano clean [--workspace]');
|
|
2545
2547
|
console.log(' c8ctl nano set <bin|model-dir> <path>');
|
|
2546
2548
|
console.log(' c8ctl nano config');
|
package/nanobpmn-binary.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "c8ctl-plugin-nano",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "c8ctl plugin to start, inspect, and stop a local Nano BPM (nanobpmn) cluster",
|
|
6
6
|
"main": "c8ctl-plugin.js",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"semantic-release": "^25.0.3"
|
|
50
50
|
},
|
|
51
51
|
"optionalDependencies": {
|
|
52
|
-
"@nanobpm/c8ctl-plugin-nano-darwin-arm64": "1.
|
|
53
|
-
"@nanobpm/c8ctl-plugin-nano-darwin-x64": "1.
|
|
54
|
-
"@nanobpm/c8ctl-plugin-nano-linux-x64": "1.
|
|
55
|
-
"@nanobpm/c8ctl-plugin-nano-linux-arm64": "1.
|
|
56
|
-
"@nanobpm/c8ctl-plugin-nano-win32-x64": "1.
|
|
52
|
+
"@nanobpm/c8ctl-plugin-nano-darwin-arm64": "1.5.0",
|
|
53
|
+
"@nanobpm/c8ctl-plugin-nano-darwin-x64": "1.5.0",
|
|
54
|
+
"@nanobpm/c8ctl-plugin-nano-linux-x64": "1.5.0",
|
|
55
|
+
"@nanobpm/c8ctl-plugin-nano-linux-arm64": "1.5.0",
|
|
56
|
+
"@nanobpm/c8ctl-plugin-nano-win32-x64": "1.5.0"
|
|
57
57
|
}
|
|
58
58
|
}
|