Documentation ¶
Index ¶
- func AliasHasNoOverlap(alias string) bool
- func ArrayToJsonArray(arr []string) (string, error)
- func JsonArrayToArray(jsonArr string) ([]string, error)
- type Alias
- type Result
- type Store
- func (s *Store) AddAlias(cmd []string, alias string) error
- func (s *Store) AddHistory(command []string) error
- func (s *Store) GenerateNewAlises(window time.Duration, amount int) error
- func (s *Store) GetAliases() ([]Alias, error)
- func (s *Store) GetHistory() ([]Result, error)
- func (s *Store) HasAliasWithCommand(jsonArr string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AliasHasNoOverlap ¶
func ArrayToJsonArray ¶
func JsonArrayToArray ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AddHistory ¶
func (*Store) GenerateNewAlises ¶
func (*Store) GetAliases ¶
func (*Store) GetHistory ¶
Click to show internal directories.
Click to hide internal directories.