Add global seal-use stop command and shutdown HTTP route
This commit is contained in:
1 parent
37580dac44
commit
f9b8b06647
4 files changed
+90
-69
No files matched your search
@@ -45,6 +45,7 @@ const DEFAULT_APP_ROOT = dirname(dirname(dirname(fileURLToPath(import.meta.url))
|
||||
const KNOWN_AREAS = new Set([
|
||||
"config",
|
||||
"service",
|
||||
"stop",
|
||||
"http",
|
||||
"serve",
|
||||
"update",
|
||||
@@ -212,6 +213,11 @@ async function dispatch(argv: string[], runtime: CliRuntime) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (area === "stop") {
|
||||
await handleServiceCommand("stop", runtime, args);
|
||||
return;
|
||||
}
|
||||
|
||||
if (area === "http" || area === "serve") {
|
||||
await handleHttpCommand(args);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user