commands

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 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 ConnectArg added in v0.4.0

type ConnectArg struct {
	Type string
	Id   int
}

type State

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

type SuccessEntry added in v0.4.0

type SuccessEntry struct {
	Name     string
	TypeName string
	Id       int
}

Jump to

Keyboard shortcuts

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