6 "github.com/charmbracelet/crush/internal/logging"
9// PersistentShell is a singleton shell instance that maintains state across the application
10type PersistentShell struct {
16 shellInstance *PersistentShell
19// GetPersistentShell returns the singleton persistent shell instance
20// This maintains backward compatibility with the existing API
21func GetPersistentShell(cwd string) *PersistentShell {
23 shellInstance = &PersistentShell{
24 Shell: NewShell(&Options{
26 Logger: &loggingAdapter{},
33// loggingAdapter adapts the internal logging package to the Logger interface
34type loggingAdapter struct{}
36func (l *loggingAdapter) InfoPersist(msg string, keysAndValues ...interface{}) {
37 logging.InfoPersist(msg, keysAndValues...)
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