command

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AskCmd

type AskCmd struct {
	Query string `arg:"" help:"Natural language query to convert to SQL."`
}

func (*AskCmd) Run

func (c *AskCmd) Run(globals *Globals) error

type ExecCmd

type ExecCmd struct {
	SQL string `arg:"" help:"SQL statement to execute."`
}

func (*ExecCmd) Run

func (c *ExecCmd) Run(globals *Globals) error

type GUICmd

type GUICmd struct {
	Port   int  `help:"Port to listen on." short:"P" default:"8080"`
	NoOpen bool `help:"Do not open browser automatically."`
	Dev    bool `help:"Allow http://localhost:5173 as an origin so the Vite dev server can talk to this API."`
}

func (*GUICmd) Run

func (c *GUICmd) Run(globals *Globals) error

Run boots the GUI HTTP server with a graceful shutdown on SIGINT / SIGTERM. The globals struct carries any initial connection selection from the CLI layer; the SPA is still expected to call PUT /api/session to pick or confirm a destination.

type Globals

type Globals struct {
	Profile         string
	Debug           bool
	AWSConfig       aws.Config
	ClusterArn      string
	SecretArn       string
	Database        string
	BedrockModel    string
	BedrockLanguage string
}

type TUICmd

type TUICmd struct{}

func (*TUICmd) Run

func (c *TUICmd) Run(globals *Globals) error

Jump to

Keyboard shortcuts

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