fix(cli): show background server startup status
This commit is contained in:
parent
43ecf3ff1b
commit
1c67004999
3 changed files with 17 additions and 3 deletions
|
|
@ -18,6 +18,12 @@ export default Runtime.handler(Commands, (input) =>
|
|||
const server = yield* Server.resolve({
|
||||
server: Option.getOrUndefined(input.server),
|
||||
standalone: input.standalone,
|
||||
onStart: (reason) =>
|
||||
process.stderr.write(
|
||||
reason === "version-mismatch"
|
||||
? "Restarting background server (version mismatch)...\n"
|
||||
: "Starting background server...\n",
|
||||
),
|
||||
})
|
||||
const config = TuiConfig.resolve({}, { terminalSuspend: false })
|
||||
let disposeSlots: (() => void) | undefined
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue