@infosupport/huddle-cli 0.0.0-experiment-58.18.1 → 0.0.0-experiment-76.23.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/README.md +1 -1
- package/dist/experiment.js +1 -1
- package/dist/index.js +3 -3
- package/dist/runtime.js +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ npm install -g @infosupport/huddle-cli
|
|
|
16
16
|
huddle init
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
Pulls `ghcr.io/infosupport/huddle:latest` and starts the container. Works with Docker
|
|
19
|
+
Pulls `ghcr.io/infosupport/huddle:latest` and starts the container. Works with Docker and Podman: the runtime is detected automatically (Docker first, then Podman), or pick one explicitly with `huddle init --runtime <docker|podman>` or the `HUDDLE_RUNTIME` env var. If you run `huddle` while Huddle isn't running, you automatically get a hint to run this command.
|
|
20
20
|
|
|
21
21
|
## Starting devcontainers
|
|
22
22
|
|
package/dist/experiment.js
CHANGED
|
@@ -23,7 +23,7 @@ function cliExperiment() {
|
|
|
23
23
|
function parseIssueNumber(raw) {
|
|
24
24
|
const issue = Number(raw);
|
|
25
25
|
if (!raw || !Number.isInteger(issue) || issue <= 0) {
|
|
26
|
-
throw new Error(`Invalid issue number: ${raw ?? '(empty)'}. Use e.g. "huddle experiment use 123".`);
|
|
26
|
+
throw new Error(`Invalid issue/PR number: ${raw ?? '(empty)'}. Use e.g. "huddle experiment use 123".`);
|
|
27
27
|
}
|
|
28
28
|
return issue;
|
|
29
29
|
}
|
package/dist/index.js
CHANGED
|
@@ -95,15 +95,15 @@ Usage:
|
|
|
95
95
|
start them via Docker or Podman
|
|
96
96
|
huddle firewall list [options] Show firewall requests
|
|
97
97
|
huddle fw list [options] Alias for firewall list
|
|
98
|
-
huddle experiment use <nr> Activate the experimental build of issue <nr>
|
|
98
|
+
huddle experiment use <nr> Activate the experimental build of issue/PR <nr>
|
|
99
99
|
and run init
|
|
100
100
|
huddle experiment reset Back to the stable release
|
|
101
101
|
huddle experiment status Show the active channel and CLI version
|
|
102
102
|
|
|
103
103
|
Init options:
|
|
104
|
-
--runtime <docker|podman
|
|
104
|
+
--runtime <docker|podman> Container runtime (default: auto-detected;
|
|
105
105
|
also via the HUDDLE_RUNTIME env var)
|
|
106
|
-
--experiment <nr> Use the experimental build of issue <nr>
|
|
106
|
+
--experiment <nr> Use the experimental build of issue/PR <nr>
|
|
107
107
|
(same as "huddle experiment use <nr>")
|
|
108
108
|
|
|
109
109
|
Start options:
|
package/dist/runtime.js
CHANGED
|
@@ -69,14 +69,14 @@ function buildRuntime(name) {
|
|
|
69
69
|
}
|
|
70
70
|
function parseRuntimeName(value) {
|
|
71
71
|
const normalized = value.toLowerCase().trim();
|
|
72
|
-
if (normalized === 'docker' || normalized === 'podman'
|
|
72
|
+
if (normalized === 'docker' || normalized === 'podman')
|
|
73
73
|
return normalized;
|
|
74
|
-
throw new Error(`Unknown container runtime: ${value}. Choose docker
|
|
74
|
+
throw new Error(`Unknown container runtime: ${value}. Choose docker or podman.`);
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
77
|
* Determines which container runtime to use.
|
|
78
78
|
* An explicit choice (via --runtime or HUDDLE_RUNTIME) wins; otherwise it is
|
|
79
|
-
* auto-detected: Docker first, then Podman
|
|
79
|
+
* auto-detected: Docker first, then Podman.
|
|
80
80
|
*/
|
|
81
81
|
function resolveRuntime(explicit) {
|
|
82
82
|
const requested = explicit ?? process.env.HUDDLE_RUNTIME;
|
|
@@ -90,9 +90,9 @@ function resolveRuntime(explicit) {
|
|
|
90
90
|
// Auto-detectie: kijk eerst achter het `docker`-commando (dat een Podman-shim
|
|
91
91
|
// kan zijn), daarna naar `podman`. Zo wint een echte Docker-engine als die er
|
|
92
92
|
// is, maar herkennen we Podman ook als het zich als `docker` voordoet.
|
|
93
|
-
const detected = detectEngine('docker') ?? detectEngine('podman')
|
|
93
|
+
const detected = detectEngine('docker') ?? detectEngine('podman');
|
|
94
94
|
if (detected)
|
|
95
95
|
return buildRuntime(detected);
|
|
96
|
-
throw new Error('No working container runtime found. Install and start Docker
|
|
97
|
-
'or pick one explicitly with --runtime <docker|podman
|
|
96
|
+
throw new Error('No working container runtime found. Install and start Docker or Podman,\n' +
|
|
97
|
+
'or pick one explicitly with --runtime <docker|podman> or the HUDDLE_RUNTIME env var.');
|
|
98
98
|
}
|
package/package.json
CHANGED