hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/internal/cli/commands.go
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-08-29 19:15:28 +0200
committerhachem <im@hachem.wtf>2026-08-29 19:15:28 +0200
commit3eba8fbd243c0ffcb1c396526a4e19d1abc1eaf9 (patch)
tree31613c6da3a3da3c8777d094f5e1466804dbf3a9 /internal/cli/commands.go
parentfcbbeccaa80c7e120933682b330272a1490c1cf5 (diff)
add: control flow
Diffstat (limited to 'internal/cli/commands.go')
-rw-r--r--internal/cli/commands.go20
1 files changed, 20 insertions, 0 deletions
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
@@ -17,6 +17,26 @@ func defaultCommands() []command {
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",
run: runCheck,