From 3eba8fbd243c0ffcb1c396526a4e19d1abc1eaf9 Mon Sep 17 00:00:00 2001 From: hachem Date: Sat, 29 Aug 2026 19:15:28 +0200 Subject: add: control flow --- internal/cli/commands.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'internal/cli/commands.go') diff --git a/internal/cli/commands.go b/internal/cli/commands.go index d76402d..437fff2 100644 --- a/internal/cli/commands.go +++ b/internal/cli/commands.go @@ -16,6 +16,26 @@ func defaultCommands() []command { desc: "Manage mods — list, search, add, pin versions, remove", run: runMods, }, + { + name: "start", + desc: "Start the server in the background", + run: runStart, + }, + { + name: "stop", + desc: "Stop the running server", + run: runStop, + }, + { + name: "restart", + desc: "Restart the server", + run: runRestart, + }, + { + name: "status", + desc: "Show whether the server is running, players, and version", + run: runStatus, + }, { name: "check", desc: "Check whether the configured mods are compatible", -- cgit v1.3