runhistory

package
v0.0.0-...-7b27a3b Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const BuiltinRunType = "Builtin"
View Source
const ExtensionRunType = "Extension"

Variables

This section is empty.

Functions

func GetBuiltinHistory

func GetBuiltinHistory() map[string]RunHistoryItem

func GetByType

func GetByType(t string) map[string]RunHistoryItem

func GetExtensionHistory

func GetExtensionHistory() map[string]RunHistoryItem

Types

type RunHistory

type RunHistory struct {
	Items []RunHistoryItem `json:"items"`
}

func Get

func Get() (*RunHistory, error)

func (*RunHistory) Add

func (h *RunHistory) Add(name, runType, cmd string, term bool)

type RunHistoryItem

type RunHistoryItem struct {
	Name        string `json:"name"`
	RunType     string `json:"runType"`
	Cmd         string `json:"cmd"`
	Terminal    bool   `json:"terminal"`
	Count       int64  `json:"count"`
	LastRunTime int64  `json:"lastRunTime"`
}

Jump to

Keyboard shortcuts

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