hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/internal/cli/commands.go
diff options
context:
space:
mode:
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)
}