hintsummary

package
v0.0.0-...-e081c89 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Summary is an overriding summary for readline hints
	Summary = New()
)

Functions

func Get

func Get(cmd string, checkManPage bool) (r []rune)

Types

type HintSummary

type HintSummary struct {
	// contains filtered or unexported fields
}

HintSummary is a thread-safe map for storing the hint summary overrides

func New

func New() *HintSummary

New creates a new instance of the hint summary override structure

func (*HintSummary) Delete

func (hs *HintSummary) Delete(exe string) error

Delete removes a hint summary for a specific executable

func (*HintSummary) Dump

func (hs *HintSummary) Dump() map[string]string

Dump returns a JSON-able structure of the stored hint summary overrides

func (*HintSummary) Get

func (hs *HintSummary) Get(exe string) string

Get returns the hint summary override

func (*HintSummary) Set

func (hs *HintSummary) Set(exe, summary string)

Set stores the hint summary override for a specific executable

Jump to

Keyboard shortcuts

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