worktree-compose 0.2.0 → 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/README.md +501 -143
- package/SKILL.md +113 -0
- package/dist/cli.js +94 -33
- package/dist/commands/clean.d.ts +2 -1
- package/dist/commands/clean.js +8 -48
- package/dist/commands/doctor.d.ts +3 -0
- package/dist/commands/doctor.js +30 -0
- package/dist/commands/list.d.ts +4 -1
- package/dist/commands/list.js +62 -44
- package/dist/commands/promote.d.ts +3 -1
- package/dist/commands/promote.js +4 -34
- package/dist/commands/prune.d.ts +2 -0
- package/dist/commands/prune.js +7 -0
- package/dist/commands/restart.d.ts +2 -1
- package/dist/commands/restart.js +11 -5
- package/dist/commands/skill.d.ts +4 -0
- package/dist/commands/skill.js +10 -0
- package/dist/commands/start.d.ts +2 -1
- package/dist/commands/start.js +7 -34
- package/dist/commands/stop.d.ts +1 -1
- package/dist/commands/stop.js +6 -23
- package/dist/compose/detect.d.ts +1 -2
- package/dist/compose/detect.js +1 -10
- package/dist/compose/engine.d.ts +61 -0
- package/dist/compose/engine.js +129 -0
- package/dist/compose/isolation.d.ts +26 -0
- package/dist/compose/isolation.js +91 -0
- package/dist/compose/override.d.ts +152 -0
- package/dist/compose/override.js +542 -0
- package/dist/compose/parse.d.ts +12 -0
- package/dist/compose/parse.js +199 -29
- package/dist/compose/status.d.ts +84 -0
- package/dist/compose/status.js +227 -0
- package/dist/compose/types.d.ts +43 -0
- package/dist/config.d.ts +31 -0
- package/dist/config.js +23 -6
- package/dist/context.d.ts +104 -3
- package/dist/context.js +299 -45
- package/dist/core/clean.d.ts +91 -0
- package/dist/core/clean.js +347 -0
- package/dist/core/compose.d.ts +92 -0
- package/dist/core/compose.js +195 -0
- package/dist/core/doctor.d.ts +29 -0
- package/dist/core/doctor.js +342 -0
- package/dist/core/list.d.ts +46 -0
- package/dist/core/list.js +101 -0
- package/dist/core/promote.d.ts +40 -0
- package/dist/core/promote.js +117 -0
- package/dist/core/prune.d.ts +32 -0
- package/dist/core/prune.js +79 -0
- package/dist/core/restart.d.ts +14 -0
- package/dist/core/restart.js +18 -0
- package/dist/core/start.d.ts +33 -0
- package/dist/core/start.js +113 -0
- package/dist/core/stop.d.ts +32 -0
- package/dist/core/stop.js +58 -0
- package/dist/core/teardown.d.ts +123 -0
- package/dist/core/teardown.js +305 -0
- package/dist/core/types.d.ts +15 -0
- package/dist/core/types.js +1 -0
- package/dist/git/promote.d.ts +49 -2
- package/dist/git/promote.js +160 -38
- package/dist/git/repo.d.ts +72 -0
- package/dist/git/repo.js +167 -0
- package/dist/git/status.d.ts +8 -0
- package/dist/git/status.js +25 -0
- package/dist/git/worktree.d.ts +63 -3
- package/dist/git/worktree.js +173 -29
- package/dist/mcp/server.d.ts +2 -0
- package/dist/mcp/server.js +230 -115
- package/dist/ports/allocate.d.ts +39 -5
- package/dist/ports/allocate.js +96 -16
- package/dist/ports/extract.d.ts +12 -0
- package/dist/ports/extract.js +48 -4
- package/dist/ports/types.d.ts +12 -1
- package/dist/selectors.d.ts +10 -0
- package/dist/selectors.js +106 -0
- package/dist/skill.d.ts +13 -0
- package/dist/skill.js +28 -0
- package/dist/state/registry.d.ts +194 -0
- package/dist/state/registry.js +595 -0
- package/dist/sync/env.d.ts +93 -2
- package/dist/sync/env.js +169 -32
- package/dist/sync/files.d.ts +15 -1
- package/dist/sync/files.js +126 -38
- package/dist/utils/exec.d.ts +69 -4
- package/dist/utils/exec.js +221 -15
- package/dist/utils/log.d.ts +37 -0
- package/dist/utils/log.js +68 -4
- package/dist/utils/paths.d.ts +61 -0
- package/dist/utils/paths.js +163 -0
- package/dist/utils/sanitize.d.ts +7 -0
- package/dist/utils/sanitize.js +12 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +3 -0
- package/dist/workspaces/resolve.d.ts +21 -0
- package/dist/workspaces/resolve.js +235 -0
- package/package.json +20 -16
- package/wtc.schema.json +62 -0
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import fs from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { parse as parseYaml } from "yaml";
|
|
4
|
+
/** Directories that never contain workspaces and are expensive to walk. */
|
|
5
|
+
const IGNORED_DIRS = new Set([
|
|
6
|
+
"node_modules",
|
|
7
|
+
".git",
|
|
8
|
+
"dist",
|
|
9
|
+
"build",
|
|
10
|
+
"coverage",
|
|
11
|
+
".turbo",
|
|
12
|
+
".next",
|
|
13
|
+
".cache",
|
|
14
|
+
"out",
|
|
15
|
+
"vendor",
|
|
16
|
+
"target",
|
|
17
|
+
".venv",
|
|
18
|
+
]);
|
|
19
|
+
const MAX_WALK_DEPTH = 8;
|
|
20
|
+
function readJson(file) {
|
|
21
|
+
try {
|
|
22
|
+
return JSON.parse(fs.readFileSync(file, "utf-8"));
|
|
23
|
+
}
|
|
24
|
+
catch {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Workspace globs declared by the repo: `package.json#workspaces` (npm/bun/yarn
|
|
30
|
+
* style, array or `{ "packages": [...] }`) plus `pnpm-workspace.yaml#packages`.
|
|
31
|
+
*/
|
|
32
|
+
export function getWorkspacePatterns(repoRoot) {
|
|
33
|
+
const patterns = [];
|
|
34
|
+
const pkg = readJson(path.join(repoRoot, "package.json"));
|
|
35
|
+
const ws = pkg?.workspaces;
|
|
36
|
+
if (Array.isArray(ws)) {
|
|
37
|
+
patterns.push(...ws.filter((p) => typeof p === "string"));
|
|
38
|
+
}
|
|
39
|
+
else if (ws && typeof ws === "object") {
|
|
40
|
+
const packages = ws.packages;
|
|
41
|
+
if (Array.isArray(packages)) {
|
|
42
|
+
patterns.push(...packages.filter((p) => typeof p === "string"));
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
const pnpmFile = path.join(repoRoot, "pnpm-workspace.yaml");
|
|
46
|
+
if (fs.existsSync(pnpmFile)) {
|
|
47
|
+
try {
|
|
48
|
+
const doc = parseYaml(fs.readFileSync(pnpmFile, "utf-8"));
|
|
49
|
+
if (doc && Array.isArray(doc.packages)) {
|
|
50
|
+
patterns.push(...doc.packages.filter((p) => typeof p === "string"));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
catch {
|
|
54
|
+
// A malformed pnpm-workspace.yaml is ignored; package.json still applies.
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return [...new Set(patterns.map((p) => p.trim()).filter(Boolean))];
|
|
58
|
+
}
|
|
59
|
+
function escapeRegExp(value) {
|
|
60
|
+
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
61
|
+
}
|
|
62
|
+
/** Convert a workspace glob (`*`, `**`, `?`) into an anchored regexp. */
|
|
63
|
+
function globToRegExp(pattern) {
|
|
64
|
+
const normalized = pattern
|
|
65
|
+
.replace(/\\/g, "/")
|
|
66
|
+
.replace(/^\.\//, "")
|
|
67
|
+
.replace(/\/+$/, "");
|
|
68
|
+
let re = "";
|
|
69
|
+
for (let i = 0; i < normalized.length; i++) {
|
|
70
|
+
const ch = normalized[i];
|
|
71
|
+
if (ch === "*") {
|
|
72
|
+
if (normalized[i + 1] === "*") {
|
|
73
|
+
i++;
|
|
74
|
+
if (normalized[i + 1] === "/") {
|
|
75
|
+
i++;
|
|
76
|
+
re += "(?:[^/]+/)*";
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
re += ".*";
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
re += "[^/]*";
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
else if (ch === "?") {
|
|
87
|
+
re += "[^/]";
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
re += escapeRegExp(ch);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return new RegExp(`^${re}$`);
|
|
94
|
+
}
|
|
95
|
+
/** Directory to start walking for a glob: its first static path segment. */
|
|
96
|
+
function scanRootForPattern(pattern, repoRoot) {
|
|
97
|
+
const first = pattern.split("/")[0];
|
|
98
|
+
if (first && !first.includes("*") && !first.includes("?")) {
|
|
99
|
+
return path.join(repoRoot, first);
|
|
100
|
+
}
|
|
101
|
+
return repoRoot;
|
|
102
|
+
}
|
|
103
|
+
function* walkDirs(root, depth, maxDepth) {
|
|
104
|
+
yield root;
|
|
105
|
+
if (depth >= maxDepth)
|
|
106
|
+
return;
|
|
107
|
+
let entries;
|
|
108
|
+
try {
|
|
109
|
+
entries = fs.readdirSync(root, { withFileTypes: true });
|
|
110
|
+
}
|
|
111
|
+
catch {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
for (const entry of entries) {
|
|
115
|
+
// Symlinked directories are skipped to avoid cycles.
|
|
116
|
+
if (!entry.isDirectory())
|
|
117
|
+
continue;
|
|
118
|
+
if (IGNORED_DIRS.has(entry.name))
|
|
119
|
+
continue;
|
|
120
|
+
yield* walkDirs(path.join(root, entry.name), depth + 1, maxDepth);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
/** Every directory matched by the declared workspace globs that has a package.json. */
|
|
124
|
+
export function listWorkspaces(repoRoot) {
|
|
125
|
+
const patterns = getWorkspacePatterns(repoRoot);
|
|
126
|
+
if (patterns.length === 0)
|
|
127
|
+
return [];
|
|
128
|
+
const includes = patterns.filter((p) => !p.startsWith("!"));
|
|
129
|
+
const excludes = patterns
|
|
130
|
+
.filter((p) => p.startsWith("!"))
|
|
131
|
+
.map((p) => globToRegExp(p.slice(1)));
|
|
132
|
+
const found = new Map();
|
|
133
|
+
for (const pattern of includes) {
|
|
134
|
+
const scanRoot = scanRootForPattern(pattern, repoRoot);
|
|
135
|
+
if (!fs.existsSync(scanRoot))
|
|
136
|
+
continue;
|
|
137
|
+
const matcher = globToRegExp(pattern);
|
|
138
|
+
for (const abs of walkDirs(scanRoot, 0, MAX_WALK_DEPTH)) {
|
|
139
|
+
const rel = path.relative(repoRoot, abs).split(path.sep).join("/");
|
|
140
|
+
// The root package is not a workspace, even when a broad glob matches it.
|
|
141
|
+
if (rel === "")
|
|
142
|
+
continue;
|
|
143
|
+
if (!matcher.test(rel))
|
|
144
|
+
continue;
|
|
145
|
+
if (excludes.some((re) => re.test(rel)))
|
|
146
|
+
continue;
|
|
147
|
+
if (found.has(rel))
|
|
148
|
+
continue;
|
|
149
|
+
const pkg = readJson(path.join(abs, "package.json"));
|
|
150
|
+
if (!pkg)
|
|
151
|
+
continue;
|
|
152
|
+
const name = typeof pkg.name === "string" && pkg.name
|
|
153
|
+
? pkg.name
|
|
154
|
+
: path.basename(abs);
|
|
155
|
+
found.set(rel, { dir: rel, absDir: abs, name });
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
return [...found.values()].sort((a, b) => a.dir.localeCompare(b.dir));
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Resolve user-supplied workspace selectors (`--workspace server`, `apps/server`,
|
|
162
|
+
* `@acme/ui`) into workspace directories, preserving request order and
|
|
163
|
+
* deduplicating. Throws with available options when a selector matches nothing.
|
|
164
|
+
*/
|
|
165
|
+
export function resolveWorkspaces(repoRoot, names) {
|
|
166
|
+
const requested = [...new Set(names.map((n) => n.trim()).filter(Boolean))];
|
|
167
|
+
if (requested.length === 0)
|
|
168
|
+
return [];
|
|
169
|
+
const all = listWorkspaces(repoRoot);
|
|
170
|
+
const resolved = [];
|
|
171
|
+
const used = new Set();
|
|
172
|
+
for (const raw of requested) {
|
|
173
|
+
const name = raw.replace(/^\.\//, "").replace(/\/+$/, "");
|
|
174
|
+
const match = findWorkspace(repoRoot, all, name);
|
|
175
|
+
if (!match) {
|
|
176
|
+
const available = all.map((w) => w.name).join(", ");
|
|
177
|
+
throw new Error(`Workspace "${raw}" not found in ${repoRoot}.` +
|
|
178
|
+
(available
|
|
179
|
+
? ` Available workspaces: ${available}.`
|
|
180
|
+
: " No workspaces declared in package.json#workspaces or pnpm-workspace.yaml."));
|
|
181
|
+
}
|
|
182
|
+
if (!used.has(match.dir)) {
|
|
183
|
+
used.add(match.dir);
|
|
184
|
+
resolved.push(match);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
return resolved;
|
|
188
|
+
}
|
|
189
|
+
function findWorkspace(repoRoot, all, name) {
|
|
190
|
+
const byName = all.find((w) => w.name === name);
|
|
191
|
+
if (byName)
|
|
192
|
+
return byName;
|
|
193
|
+
const byDir = all.find((w) => w.dir === name);
|
|
194
|
+
if (byDir)
|
|
195
|
+
return byDir;
|
|
196
|
+
const byBasename = all.filter((w) => path.posix.basename(w.dir) === name);
|
|
197
|
+
if (byBasename.length > 1) {
|
|
198
|
+
throw new Error(`Workspace "${name}" is ambiguous: ${byBasename.map((w) => w.dir).join(", ")}. ` +
|
|
199
|
+
`Pass the full directory path instead.`);
|
|
200
|
+
}
|
|
201
|
+
if (byBasename.length === 1)
|
|
202
|
+
return byBasename[0];
|
|
203
|
+
// Repos without a workspace declaration: probe common layouts so
|
|
204
|
+
// `--workspace server` still finds `apps/server`.
|
|
205
|
+
if (all.length === 0) {
|
|
206
|
+
for (const candidate of [
|
|
207
|
+
name,
|
|
208
|
+
`apps/${name}`,
|
|
209
|
+
`packages/${name}`,
|
|
210
|
+
`libs/${name}`,
|
|
211
|
+
]) {
|
|
212
|
+
const abs = path.join(repoRoot, candidate);
|
|
213
|
+
const rel = path.relative(repoRoot, abs).split(path.sep).join("/");
|
|
214
|
+
// Candidates are caller input: never accept a path that escapes (or
|
|
215
|
+
// resolves to) the repo root, e.g. `--workspace ../other`. Keep `.dir`
|
|
216
|
+
// repo-relative and POSIX-normalized, matching declared workspaces.
|
|
217
|
+
if (rel === "" ||
|
|
218
|
+
rel.split("/")[0] === ".." ||
|
|
219
|
+
path.isAbsolute(rel)) {
|
|
220
|
+
continue;
|
|
221
|
+
}
|
|
222
|
+
const pkg = readJson(path.join(abs, "package.json"));
|
|
223
|
+
if (!pkg)
|
|
224
|
+
continue;
|
|
225
|
+
return {
|
|
226
|
+
dir: rel,
|
|
227
|
+
absDir: abs,
|
|
228
|
+
name: typeof pkg.name === "string" && pkg.name
|
|
229
|
+
? pkg.name
|
|
230
|
+
: path.basename(candidate),
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
return null;
|
|
235
|
+
}
|
package/package.json
CHANGED
|
@@ -1,17 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "worktree-compose",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Zero-config Docker Compose isolation for git worktrees",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"worktree-compose": "
|
|
8
|
-
"wtc": "
|
|
7
|
+
"worktree-compose": "dist/cli.js",
|
|
8
|
+
"wtc": "dist/cli.js"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
|
-
"dist"
|
|
11
|
+
"dist",
|
|
12
|
+
"SKILL.md",
|
|
13
|
+
"wtc.schema.json"
|
|
12
14
|
],
|
|
13
15
|
"engines": {
|
|
14
|
-
"node": ">=
|
|
16
|
+
"node": ">=20"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "tsc",
|
|
20
|
+
"dev": "tsx src/cli.ts",
|
|
21
|
+
"typecheck": "tsc --noEmit",
|
|
22
|
+
"test": "NODE_OPTIONS='--experimental-vm-modules' jest --coverage",
|
|
23
|
+
"prepublishOnly": "npm run build"
|
|
15
24
|
},
|
|
16
25
|
"keywords": [
|
|
17
26
|
"git",
|
|
@@ -21,7 +30,8 @@
|
|
|
21
30
|
"isolation",
|
|
22
31
|
"parallel",
|
|
23
32
|
"development",
|
|
24
|
-
"mcp"
|
|
33
|
+
"mcp",
|
|
34
|
+
"podman"
|
|
25
35
|
],
|
|
26
36
|
"repository": {
|
|
27
37
|
"type": "git",
|
|
@@ -30,15 +40,15 @@
|
|
|
30
40
|
"bugs": {
|
|
31
41
|
"url": "https://github.com/mostafasudo/worktree-compose/issues"
|
|
32
42
|
},
|
|
33
|
-
"homepage": "https://
|
|
43
|
+
"homepage": "https://www.worktree-compose.com",
|
|
34
44
|
"license": "MIT",
|
|
35
45
|
"dependencies": {
|
|
36
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
46
|
+
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
37
47
|
"chalk": "^5.4.1",
|
|
38
48
|
"cli-table3": "^0.6.5",
|
|
39
49
|
"commander": "^14.0.0",
|
|
40
50
|
"yaml": "^2.8.0",
|
|
41
|
-
"zod": "^3.
|
|
51
|
+
"zod": "^3.25.0"
|
|
42
52
|
},
|
|
43
53
|
"devDependencies": {
|
|
44
54
|
"@types/jest": "^29.5.14",
|
|
@@ -47,11 +57,5 @@
|
|
|
47
57
|
"ts-jest": "^29.3.4",
|
|
48
58
|
"tsx": "^4.19.4",
|
|
49
59
|
"typescript": "^5.8.3"
|
|
50
|
-
},
|
|
51
|
-
"scripts": {
|
|
52
|
-
"build": "tsc",
|
|
53
|
-
"dev": "tsx src/cli.ts",
|
|
54
|
-
"test": "NODE_OPTIONS='--experimental-vm-modules' jest --coverage",
|
|
55
|
-
"release": "set -a && . ./.env && set +a && pnpm publish --no-git-checks"
|
|
56
60
|
}
|
|
57
|
-
}
|
|
61
|
+
}
|
package/wtc.schema.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://unpkg.com/worktree-compose/wtc.schema.json",
|
|
4
|
+
"title": "worktree-compose configuration",
|
|
5
|
+
"description": "Configuration for wtc (worktree-compose), read from .wtcrc.json or the \"wtc\" key of package.json in the main worktree.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"properties": {
|
|
9
|
+
"$schema": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "JSON Schema reference for editor completion. Ignored by wtc."
|
|
12
|
+
},
|
|
13
|
+
"sync": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"description": "Extra repo-relative files or directories copied from the main worktree into each worktree on start. Entries that are absolute or escape the repository are skipped.",
|
|
16
|
+
"items": { "type": "string", "minLength": 1 },
|
|
17
|
+
"examples": [["nginx", "config/local.json"]]
|
|
18
|
+
},
|
|
19
|
+
"envFile": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Env filename copied from the main worktree and injected with ports (root and selected workspaces). Must be a bare filename.",
|
|
22
|
+
"default": ".env",
|
|
23
|
+
"pattern": "^[^/\\\\]+$",
|
|
24
|
+
"examples": [".env.development"]
|
|
25
|
+
},
|
|
26
|
+
"workspaces": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"description": "Monorepo workspaces (package name, directory name, or repo-relative path) that also receive env copies and port injection.",
|
|
29
|
+
"items": { "type": "string", "minLength": 1 }
|
|
30
|
+
},
|
|
31
|
+
"envOverrides": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"description": "Extra variables written to the root env file. Values interpolate ${VAR} with allocated port variables and ${COMPOSE_PROJECT_NAME}.",
|
|
34
|
+
"additionalProperties": { "type": "string" },
|
|
35
|
+
"examples": [{ "VITE_API_URL": "http://localhost:${BACKEND_PORT}" }]
|
|
36
|
+
},
|
|
37
|
+
"workspaceEnvOverrides": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"description": "Per-workspace variables, keyed by workspace package name, directory basename, or path. Same interpolation as envOverrides.",
|
|
40
|
+
"additionalProperties": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"additionalProperties": { "type": "string" }
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"portStride": {
|
|
46
|
+
"type": "integer",
|
|
47
|
+
"minimum": 1,
|
|
48
|
+
"default": 1,
|
|
49
|
+
"description": "Allocated port = 20000 + default port + worktree index × portStride. Raise it (e.g. 100) when default host ports are clustered."
|
|
50
|
+
},
|
|
51
|
+
"composeCommand": {
|
|
52
|
+
"description": "Which compose tool to use instead of auto-detection (docker compose → podman compose → docker-compose → podman-compose; the first whose daemon answers wins). Repository config may only choose one of these four, so a cloned repository cannot make wtc run an arbitrary program. For a custom command (an absolute path, global flags such as --context, nerdctl, …) set the WTC_COMPOSE_COMMAND environment variable, which takes precedence.",
|
|
53
|
+
"oneOf": [
|
|
54
|
+
{ "type": "string", "enum": ["docker compose", "podman compose", "docker-compose", "podman-compose"] },
|
|
55
|
+
{
|
|
56
|
+
"type": "array",
|
|
57
|
+
"enum": [["docker", "compose"], ["podman", "compose"], ["docker-compose"], ["podman-compose"]]
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|