Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProcessHistoryFile ¶
ProcessHistoryFile parses and returns the commands of the provided history file.
Types ¶
type Commands ¶
type Commands struct {
// contains filtered or unexported fields
}
Commands is a container for a list of commands along with their frequencies..
func ToCommands ¶
ToCommands converts a slice of terminal commands into a Commands type.
func (Commands) FilterFrequencies ¶
FilterFrequencies returns the Commands that have a higher or equal frequency count than the one provided.
func (Commands) GetFrequency ¶
GetFrequency returns the frequency of the provided command.
Click to show internal directories.
Click to hide internal directories.