hooks

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Merge

func Merge(data config.Data, entries []Entry) (added int, addedNames []string, existing []string)

func Remove

func Remove(cmdMap map[string]interface{}, entries []Entry) (removed int, removedNames []string)

Types

type Entry

type Entry struct {
	Name        string
	Description string
	Template    string
}

func ParseTemplate

func ParseTemplate(path string) (*Entry, error)

type Info

type Info struct {
	Name        string `json:"name"`
	Description string `json:"description,omitempty"`
}

func GetCommandHooks

func GetCommandHooks(data config.Data, names map[string]bool) []Info

Jump to

Keyboard shortcuts

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