Something went wrong. Try again.
A self-hosted web platform for applications & services with design based on Google's Material 3 Expressive. (Work In Progress)
Something went wrong. Try again.
123456789101112131415161718192021222324252627import Command, { type ICommandRuntimeParameters } from "../command.ts";
export default class RestartCommand extends Command { override commandId = "restart"; flags = {}; aliases = ["rs"]; override shortDescription = "Restart the Workspaces instance";
async run(parameters: ICommandRuntimeParameters) { // this.instance.log.info( // "command_restart", // "Restarting Workspaces instance...", // );
this.instance.log.system.error("command_restart", "This command does not work as instance shutdown is unimplemented...");
// TODO: implement a shutdown sequence // this.instance.shutdown() // this.instance.requestManager.app.server.close(); // this.instance.commandManager.close();
this.instance.shutdown();
return this.finishRun(); }}