shortcuts

package
v0.221.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(state *runtime.State) *cobra.Command

NewCommand constructs the shortcuts command tree.

Types

type Entry

type Entry struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Usage       string `json:"usage"`
}

Entry is one registered slash command as `shortcuts list --format json` prints it.

func Entries

func Entries(cfg *config.Config) []Entry

Entries lists every registered shortcut for cfg, sorted by name.

Jump to

Keyboard shortcuts

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