tui

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PromptCreateMissingFile added in v0.0.2

func PromptCreateMissingFile(ctx context.Context, path, name string) error

PromptCreateMissingFile asks whether to create a specification file that does not yet exist at path. Returns nil if the user confirms, or an error if they cancel or the TUI fails.

Types

type InterfaceChange

type InterfaceChange struct {
	InterfaceId   client.InterfaceId
	Name          string
	Specification []byte
}

type InterfaceOwnerOption

type InterfaceOwnerOption struct {
	ID    string // user or org ID for CreateInterfaceRequest.Owner
	Label string // shown in the list
	Kind  string // "user" or "org" for display help
}

func PromptInterfaceOwner

func PromptInterfaceOwner(ctx context.Context, interfaceName string, options []InterfaceOwnerOption) (InterfaceOwnerOption, error)

type InterfaceRevisionUpdate

type InterfaceRevisionUpdate struct {
	InterfaceId   client.InterfaceId
	Specification []byte
	Notes         string
}

func RunBubbleTeaPushChangesTui

func RunBubbleTeaPushChangesTui(changes []InterfaceChange) ([]InterfaceRevisionUpdate, bool, error)

type NewInterface

type NewInterface struct {
	Name          string
	Description   string
	RevisionNotes string
	Type          client.InterfaceType
}

func PromptNewInterfaceCommit

func PromptNewInterfaceCommit(ctx context.Context, name string, ifaceType client.InterfaceType) (NewInterface, error)

type NewRevision

type NewRevision struct {
	Notes string
}

func PromptNewRevisionCommit

func PromptNewRevisionCommit(ctx context.Context, name string) (NewRevision, error)

type ScanCandidate

type ScanCandidate struct {
	Path        string
	Type        client.InterfaceType
	DefaultName string
}

ScanCandidate is an untracked specification offered for addition.

type ScanSelection

type ScanSelection struct {
	Path string
	Name string
	Type client.InterfaceType
}

ScanSelection is a user-chosen candidate with the name to use in ifc.yaml.

func PromptScanAdd

func PromptScanAdd(ctx context.Context, candidates []ScanCandidate) ([]ScanSelection, error)

PromptScanAdd presents untracked interface specs for multi-select and naming.

Jump to

Keyboard shortcuts

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