8// PersistentShell is a singleton shell instance that maintains state across the application
9type PersistentShell struct {
15 shellInstance *PersistentShell
18// GetPersistentShell returns the singleton persistent shell instance
19// This maintains backward compatibility with the existing API
20func GetPersistentShell(cwd string) *PersistentShell {
22 shellInstance = &PersistentShell{
23 Shell: NewShell(&Options{
25 Logger: &loggingAdapter{},
32// slog.dapter adapts the internal slog.package to the Logger interface
33type loggingAdapter struct{}
35func (l *loggingAdapter) InfoPersist(msg string, keysAndValues ...interface{}) {
36 slog.Info(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