Rich Enhanced Shell History - Contextual shell history for zsh and bash
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
resh/pkg/strat/dummy.go

24 lines
459 B

package strat
import "github.com/curusarn/resh/pkg/records"
type Dummy struct {
history []string
}
func (s *Dummy) GetTitleAndDescription() (string, string) {
return "dummy", "Return empty candidate list"
}
func (s *Dummy) GetCandidates() []string {
return nil
}
func (s *Dummy) AddHistoryRecord(record *records.EnrichedRecord) error {
s.history = append(s.history, record.CmdLine)
return nil
}
func (s *Dummy) ResetHistory() error {
return nil
}