Versions in this module Expand all Collapse all v0 v0.1.0 Nov 12, 2022 v0.0.1 Nov 10, 2022 Changes in this version + func DumpCommands() (map[string]string, error) + func ReplaceCommandsFinder(constructor func() (Finder, error)) (restore func()) + type Command struct + Command string + Snap string + Version string + func FindCommand(command string) ([]Command, error) + func FindMisspelledCommand(command string) ([]Command, error) + type CommandDB interface + AddSnap func(snapName, version, summary string, commands []string) error + Commit func() error + Rollback func() error + func Create() (CommandDB, error) + type Finder interface + Close func() error + FindCommand func(command string) ([]Command, error) + FindPackage func(pkgName string) (*Package, error) + func Open() (Finder, error) + type Package struct + Snap string + Summary string + Version string + func FindPackage(pkgName string) (*Package, error)