package store
import
var NoBlacklist = map[string]struct{}{}
var ErrNoMatchingCmd = errors.New("no matching command line")
type Store interface {
NextCmdSeq() (int, error)
AddCmd(text string) (int, error)
DelCmd(seq int) error
Cmd(seq int) (string, error)
Cmds(from, upto int) ([]string, error)
CmdsWithSeq(from, upto int) ([]Cmd, error)
NextCmd(from int, prefix string) (Cmd, error)
PrevCmd(upto int, prefix string) (Cmd, error)
AddDir(dir string, incFactor float64) error
DelDir(dir string) error
Dirs(blacklist map[string]struct{}) ([]Dir, error)
SharedVar(name string) (string, error)
SetSharedVar(name, value string) error
DelSharedVar(name string) error
}
type Dir struct {
Path string
Score float64
}
type Cmd struct {
Text string
Seq int
}