history

package
v0.0.0-...-05fba6c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HistoryDir = tools.MyPathTo("history")

Functions

This section is empty.

Types

type History

type History interface {
	// GetAll retrieves all the items and returns only the commands as a string slice
	GetAll() ([]string, error)

	// Append a command to the history
	Append(command string) error
}

func New

func New(file string) (History, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL