@@ -5,8 +5,6 @@ import (
11 _ "net/http/pprof" // profiling
9 _ "net/http/pprof" // profiling
@@ -14,14 +12,9 @@ import (
15 "github.com/charmbracelet/crush/internal/cmd"
13 "github.com/charmbracelet/crush/internal/cmd"
16 "github.com/charmbracelet/crush/internal/log"
14 "github.com/charmbracelet/crush/internal/log"
17− "github.com/charmbracelet/lipgloss/v2"
20func main() {
17func main() {
21− if runtime.GOOS == "windows" {
25 defer log.RecoverPanic("main", func() {
18 defer log.RecoverPanic("main", func() {
26 slog.Error("Application terminated due to unhandled panic")
19 slog.Error("Application terminated due to unhandled panic")
@@ -37,15 +30,3 @@ func main() {
38 cmd.Execute()
31 cmd.Execute()
41−func showWindowsWarning() {
42− content := strings.Join([]string{
43− lipgloss.NewStyle().Bold(true).Render("WARNING:") + " Crush is experimental on Windows!",
44− "While we work on it, we recommend WSL2 for a better experience.",
45− lipgloss.NewStyle().Italic(true).Render("Press Enter to continue..."),