tui

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package tui is the human, terminal-only front end to Talento's authenticated app sessions. It neither shells out to CLI commands nor interprets server text.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, options Options) error

Run restores the terminal before returning any error to the command layer. The caller must enforce real-TTY, flags, and project-trust checks first.

Types

type Options

type Options struct {
	Profile     string
	Stdin       io.Reader
	Stdout      io.Writer
	Profiles    func() ([]string, error)
	OpenSession func(context.Context, string) (app.Session, error)
	Login       func(context.Context, string, func(string)) error
}

Options contains the process-local adapters provided by the command layer. Selecting a profile does not change the persisted default. Login is invoked only after the user chooses Sign in; its callback displays the OAuth URL.

Directories

Path Synopsis
Package form contains a presentation-only JSON Schema argument editor.
Package form contains a presentation-only JSON Schema argument editor.

Jump to

Keyboard shortcuts

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