Documentation
¶
Overview ¶
Package command provides a persistent store for saved bash commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultStorePath ¶
DefaultStorePath returns the default path for the commands JSON file.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store persists saved commands as a single JSON file.
func (*Store) Get ¶
func (s *Store) Get(name string) (*domain.SavedCommand, bool)
Get returns a saved command by name.
func (*Store) List ¶
func (s *Store) List() []*domain.SavedCommand
List returns all saved commands sorted by name.
Click to show internal directories.
Click to hide internal directories.