8 _ "net/http/pprof" // profiling
10 _ "github.com/joho/godotenv/autoload" // automatically load .env files
12 "github.com/charmbracelet/crush/internal/cmd"
13 "github.com/charmbracelet/crush/internal/log"
17 defer log.RecoverPanic("main", func() {
18 slog.Error("Application terminated due to unhandled panic")
21 if os.Getenv("CRUSH_PROFILE") != "" {
23 slog.Info("Serving pprof at localhost:6060")
24 if httpErr := http.ListenAndServe("localhost:6060", nil); httpErr != nil {
25 slog.Error("Failed to pprof listen", "error", httpErr)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list