Documentation
¶
Overview ¶
Package cli is rig's command line; every command is a thin layer over engine and the core interfaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Resume func(ctx context.Context, open func(env string) (*engine.App, error), projectDir, id string) error Sessions func(projectDir string) ([][]string, error) // CloseUISession forgets a saved UI session. CloseUISession func(projectDir, id string) error // Pinned is the saved session rig opens on, Unpin forgets that choice. Pinned func(projectDir string) (id, env string) Unpin func(projectDir string) )
Resume opens a saved UI session (S in the UI); Sessions lists them. Set by main, like UI.
AIChat opens the terminal UI with the assistant's chat open on session id ("" a new one). Set by main.
PickSession lets a person choose one of rows (id, kind, saved, what) in the terminal, closing others with close on the way; -1 is no choice. Set by main.
UI opens the terminal UI; set by main so the cli package does not import the TUI.
View Source
var Version = "dev"
Functions ¶
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.