From a221b4c5edd3ff4d4a9d74113d9d3b8c7473133d Mon Sep 17 00:00:00 2001 From: hachem Date: Sat, 29 Aug 2026 03:29:51 +0200 Subject: add: modrinth client and check command --- internal/cli/commands.go | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'internal/cli/commands.go') 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 @@ -19,6 +19,11 @@ func defaultCommands() []command { return tea.Println(renderModList(m.cfg)) }, }, + { + name: "check", + desc: "Check whether the configured mods are compatible", + run: runCheck, + }, { name: "help", desc: "Show available commands", @@ -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) } -- cgit v1.3