hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/internal/cli/commands.go
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-08-29 03:29:51 +0200
committerhachem <im@hachem.wtf>2026-08-29 03:29:51 +0200
commita221b4c5edd3ff4d4a9d74113d9d3b8c7473133d (patch)
treed902da32c84dad3d5fe0152be07d3bea6d4f9ee1 /internal/cli/commands.go
parentf60177934a18daea3b24a37cf109bb2c7bfaaa72 (diff)
add: modrinth client and check command
Diffstat (limited to 'internal/cli/commands.go')
-rw-r--r--internal/cli/commands.go19
1 files changed, 14 insertions, 5 deletions
diff --git a/internal/cli/commands.go b/internal/cli/commands.go
index 1f1f132..cf7cc90 100644
--- a/internal/cli/commands.go
+++ b/internal/cli/commands.go
@@ -20,6 +20,11 @@ func defaultCommands() []command {
},
},
{
+ name: "check",
+ desc: "Check whether the configured mods are compatible",
+ run: runCheck,
+ },
+ {
name: "help",
desc: "Show available commands",
run: func(m *model) tea.Cmd {
@@ -30,15 +35,19 @@ func defaultCommands() []command {
}
func welcomeBlock(cfg *config.Config, version string) string {
+ header := lipgloss.JoinHorizontal(
+ lipgloss.Bottom,
+ titleStyle.Render("BENSON"),
+ subtitleStyle.Render(" v"+version),
+ )
+
inner := lipgloss.JoinVertical(
lipgloss.Left,
- titleStyle.Render("BENSON"),
- subtitleStyle.Render("a Minecraft server manager from hell"),
- "",
- mutedStyle.Render(fmt.Sprintf("Fabric · MC %s · v%s", cfg.MinecraftVersion, version)),
+ header,
+ mutedStyle.Render("Fabric · MC "+cfg.MinecraftVersion),
)
- hint := mutedStyle.Render("Type a command below. Tab autocompletes · Ctrl+C quits.")
+ hint := mutedStyle.Render("Tab autocompletes · Ctrl+C quits")
return lipgloss.JoinVertical(lipgloss.Left, bannerStyle.Render(inner), "", hint)
}