tui

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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