@infosupport/huddle-cli 0.0.0-experiment-48.14.1 → 0.0.0-experiment-58.18.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 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 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.
19
+ Pulls `ghcr.io/infosupport/huddle:latest` and starts the container. Works with Docker, Podman and WSLc: the runtime is detected automatically (Docker first, then Podman, then WSLc), or pick one explicitly with `huddle init --runtime <docker|podman|wslc>` 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/index.js CHANGED
@@ -101,7 +101,7 @@ Usage:
101
101
  huddle experiment status Show the active channel and CLI version
102
102
 
103
103
  Init options:
104
- --runtime <docker|podman> Container runtime (default: auto-detected;
104
+ --runtime <docker|podman|wslc> Container runtime (default: auto-detected;
105
105
  also via the HUDDLE_RUNTIME env var)
106
106
  --experiment <nr> Use the experimental build of issue <nr>
107
107
  (same as "huddle experiment use <nr>")
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' || normalized === 'wslc')
73
73
  return normalized;
74
- throw new Error(`Unknown container runtime: ${value}. Choose docker or podman.`);
74
+ throw new Error(`Unknown container runtime: ${value}. Choose docker, podman or wslc.`);
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, then wslc.
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') ?? detectEngine('wslc');
94
94
  if (detected)
95
95
  return buildRuntime(detected);
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.');
96
+ throw new Error('No working container runtime found. Install and start Docker, Podman or wslc,\n' +
97
+ 'or pick one explicitly with --runtime <docker|podman|wslc> or the HUDDLE_RUNTIME env var.');
98
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infosupport/huddle-cli",
3
- "version": "0.0.0-experiment-48.14.1",
3
+ "version": "0.0.0-experiment-58.18.1",
4
4
  "description": "Huddle CLI — start devcontainers and manage firewall rules",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "author": "Info Support B.V.",