Documentation ¶
Overview ¶
Package repository implements an in-memory database that holds a map of Command structures used with the Merlin CLI
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCommandNotFound = errors.New(fmt.Sprintf("%s: command not found", pkg))
View Source
var ErrCommandNotInMenu = errors.New(fmt.Sprintf("%s: command not in menu", pkg))
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository structure implements an in-memory database that holds a map of Command structures used with the Merlin CLI
func NewRepository ¶
func NewRepository() *Repository
NewRepository creates and returns a Repository structure that contains an in-memory map of agents
func (*Repository) Add ¶
func (r *Repository) Add(cmd commands.Command)
func (*Repository) GetAll ¶
func (r *Repository) GetAll() (commands []commands.Command)
Click to show internal directories.
Click to hide internal directories.