9 _ "net/http/pprof" // profiling
11 _ "github.com/joho/godotenv/autoload" // automatically load .env files
13 "github.com/charmbracelet/crush/cmd"
14 "github.com/charmbracelet/crush/internal/log"
18 defer log.RecoverPanic("main", func() {
19 slog.Error("Application terminated due to unhandled panic")
22 if os.Getenv("CRUSH_PROFILE") != "" {
24 slog.Info("Serving pprof at localhost:6060")
25 if httpErr := http.ListenAndServe("localhost:6060", nil); httpErr != nil {
26 slog.Error(fmt.Sprintf("Failed to pprof listen: %v", 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