@@ -5,8 +5,6 @@ import (
55 "log/slog"
66 "net/http"
77 "os"
8− "runtime"
9− "strings"
108
119 _ "net/http/pprof" // profiling
1210
@@ -14,14 +12,9 @@ import (
1412
1513 "github.com/charmbracelet/crush/internal/cmd"
1614 "github.com/charmbracelet/crush/internal/log"
17− "github.com/charmbracelet/lipgloss/v2"
1815)
1916
2017func main() {
21− if runtime.GOOS == "windows" {
22− showWindowsWarning()
23− }
24−
2518 defer log.RecoverPanic("main", func() {
2619 slog.Error("Application terminated due to unhandled panic")
2720 })
@@ -37,15 +30,3 @@ func main() {
3730
3831 cmd.Execute()
3932}
40−
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..."),
46− }, "\n")
47− fmt.Print(content)
48−
49− var input string
50− fmt.Scanln(&input)
51−}