Change summary
main.go | 19 -------------------
1 file changed, 19 deletions(-)
Detailed changes
@@ -5,8 +5,6 @@ import (
"log/slog"
"net/http"
"os"
- "runtime"
- "strings"
_ "net/http/pprof" // profiling
@@ -14,14 +12,9 @@ import (
"github.com/charmbracelet/crush/internal/cmd"
"github.com/charmbracelet/crush/internal/log"
- "github.com/charmbracelet/lipgloss/v2"
)
func main() {
- if runtime.GOOS == "windows" {
- showWindowsWarning()
- }
-
defer log.RecoverPanic("main", func() {
slog.Error("Application terminated due to unhandled panic")
})
@@ -37,15 +30,3 @@ func main() {
cmd.Execute()
}
-
-func showWindowsWarning() {
- content := strings.Join([]string{
- lipgloss.NewStyle().Bold(true).Render("WARNING:") + " Crush is experimental on Windows!",
- "While we work on it, we recommend WSL2 for a better experience.",
- lipgloss.NewStyle().Italic(true).Render("Press Enter to continue..."),
- }, "\n")
- fmt.Print(content)
-
- var input string
- fmt.Scanln(&input)
-}