Documentation
¶
Index ¶
- type Command
- type Storage
- func (s *Storage) Add(text string) error
- func (s *Storage) IncrementUse(text string) error
- func (s *Storage) List() ([]string, error)
- func (s *Storage) Load() ([]Command, error)
- func (s *Storage) Remove(text string) error
- func (s *Storage) Save(commands []Command) error
- func (s *Storage) Update(oldText, newText string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
Text string `json:"text"`
CreatedAt time.Time `json:"created_at"`
UseCount int `json:"use_count"`
}
Command represents a saved command with metadata
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage handles saving and loading commands
func (*Storage) IncrementUse ¶ added in v0.1.3
IncrementUse increases the use count for a command
Click to show internal directories.
Click to hide internal directories.