commands

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorMsg = lipgloss.NewStyle().
		Foreground(pink).
		BorderStyle(lipgloss.RoundedBorder()).
		Padding(1, 2).
		BorderForeground(red)
)

Functions

func BuildCommands

func BuildCommands() map[string]Command

Types

type Command

type Command struct {
	Name        string
	Description string
	Callback    func(*State) error
}

type State

type State struct {
	Cfg  *config.Config
	Db   *db.Queries
	Args []string
}

Jump to

Keyboard shortcuts

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