fix: 降级 D601 host compose status 入口
This commit is contained in:
+8
-2
@@ -374,7 +374,10 @@ async function main(): Promise<void> {
|
||||
return;
|
||||
}
|
||||
if (sub === "start") {
|
||||
emitJson(commandName, startStack(config));
|
||||
const result = startStack(config);
|
||||
const ok = (result as { ok?: unknown }).ok !== false;
|
||||
emitJson(commandName, result, ok);
|
||||
if (!ok) process.exitCode = 1;
|
||||
return;
|
||||
}
|
||||
if (sub === "stop") {
|
||||
@@ -382,7 +385,10 @@ async function main(): Promise<void> {
|
||||
return;
|
||||
}
|
||||
if (sub === "status") {
|
||||
emitJson(commandName, await stackStatus(config));
|
||||
const result = await stackStatus(config);
|
||||
const ok = (result as { ok?: unknown }).ok !== false;
|
||||
emitJson(commandName, result, ok);
|
||||
if (!ok) process.exitCode = 1;
|
||||
return;
|
||||
}
|
||||
if (sub === "swap") {
|
||||
|
||||
Reference in New Issue
Block a user