Help us shape the future of Go! Take the 2026 Go Developer Survey

cli

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 64 Imported by: 0

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.

View Source
var AIChat func(ctx context.Context, a *engine.App, session string) error

AIChat opens the terminal UI with the assistant's chat open on session id ("" a new one). Set by main.

View Source
var PickSession func(rows [][]string, close func(i int) error) (int, error)

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.

View Source
var UI func(ctx context.Context, a *engine.App) error

UI opens the terminal UI; set by main so the cli package does not import the TUI.

View Source
var Version = "dev"

Functions

func Execute

func Execute() int

Types

type Remote added in v0.26.0

type Remote struct {
	URL         string `json:"url"`
	User        string `json:"user,omitempty"`
	Token       string `json:"token"`
	Fingerprint string `json:"fingerprint,omitempty"`
}

Remote is a rig server this user signed in to.

Jump to

Keyboard shortcuts

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