





















@@ -45,6 +45,7 @@ function configuredProvider() {
45454646const runValueOptions = new Set([
4747"allow-env",
48+"artifact-glob",
4849"azure-location",
4950"azure-os-disk",
5051"azure-resource-group",
@@ -86,6 +87,7 @@ const runValueOptions = new Set([
8687"islo-vcpus",
8788"islo-workdir",
8889"junit",
90+"label",
8991"market",
9092"modal-app",
9193"modal-image",
@@ -101,6 +103,7 @@ const runValueOptions = new Set([
101103"network",
102104"preflight-tools",
103105"profile",
106+"proof-template",
104107"provider",
105108"proxmox-api-url",
106109"proxmox-bridge",
@@ -111,6 +114,7 @@ const runValueOptions = new Set([
111114"proxmox-user",
112115"proxmox-work-root",
113116"script",
117+"scenario",
114118"semaphore-host",
115119"semaphore-idle-timeout",
116120"semaphore-machine",
@@ -122,6 +126,7 @@ const runValueOptions = new Set([
122126"static-port",
123127"static-user",
124128"static-work-root",
129+"stop-after",
125130"tailscale-auth-key-env",
126131"tailscale-exit-node",
127132"tailscale-hostname-template",
@@ -141,9 +146,37 @@ const runValueOptions = new Set([
141146"tensorlake-workdir",
142147"ttl",
143148"type",
149+"emit-proof",
150+"preset",
151+"preset-var",
144152"windows-mode",
145153]);
146154155+let runValueOptionsFromHelp;
156+157+function parseRunValueOptionsFromHelp(text) {
158+const names = new Set();
159+for (const line of text.split(/\r?\n/u)) {
160+const match = line.match(
161+/^\s+-{1,2}([a-z0-9][a-z0-9-]*)\s+(?:string|duration|int|float|value)\b/u,
162+);
163+if (match) {
164+names.add(match[1]);
165+}
166+}
167+return names;
168+}
169+170+function currentRunValueOptions() {
171+if (!runValueOptionsFromHelp) {
172+runValueOptionsFromHelp = new Set([
173+ ...runValueOptions,
174+ ...parseRunValueOptionsFromHelp(help.text),
175+]);
176+}
177+return runValueOptionsFromHelp;
178+}
179+147180function runOptionName(arg) {
148181return arg.replace(/^-+/u, "").split("=", 1)[0];
149182}
@@ -160,7 +193,7 @@ function runCommandBounds(commandArgs) {
160193if (!arg.startsWith("-")) {
161194return { start: index, optionEnd: index };
162195}
163-if (!arg.includes("=") && runValueOptions.has(runOptionName(arg))) {
196+if (!arg.includes("=") && currentRunValueOptions().has(runOptionName(arg))) {
164197index += 1;
165198}
166199}
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。