command

package
v0.0.0-...-92d8de8 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provide

func Provide(command Command)

Types

type Command

type Command interface {
	Name() string
	Attr(ctx lsp.Context, params *lsp.CodeActionParams) *lsp.CodeAction
	Exec(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.ExecuteCommandParams) (any, error)
}

func Commands

func Commands() []Command

func Load

func Load(command string) Command

type ExchangeKind

type ExchangeKind string
const (
	DB         ExchangeKind = "database"
	Connection ExchangeKind = "connection"
)

type File

type File interface {
	LID() string
	LText() string
}

Jump to

Keyboard shortcuts

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