apitea

package
v0.0.0-...-57fe098 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package apitea contains bubbletea messages and commands for integrating bubbletea programs with the Grit API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitForResolveResponse

func WaitForResolveResponse(
	responses api.API_ResolveRepoClient,
	tag string,
) tea.Cmd

WaitForResolveResponse waits for the next response of a ResolveRepo() API operation and dispatches the appropriate message.

Types

type LocalRepoMatched

type LocalRepoMatched struct {
	Repo *api.LocalRepo
	Tag  string
}

LocalRepoMatched is a tea.Msg that indicates a ResolveRepo() API operation has found a matching local repository.

type OutputReceived

type OutputReceived struct {
	Output *api.ClientOutput
	Tag    string
}

OutputReceived is a tea.Msg that indicates output text has been received from the server.

type RemoteRepoMatched

type RemoteRepoMatched struct {
	Repo *api.RemoteRepo
	Tag  string
}

RemoteRepoMatched is a tea.Msg that indicates a ResolveRepo() API operation has found a matching remote repository.

type ResolveComplete

type ResolveComplete struct {
	Tag string
}

ResolveComplete is a tea.Msg that indicates a ResolveRepo() API operation has completed successfully.

type ResolveFailed

type ResolveFailed struct {
	Error error
	Tag   string
}

ResolveFailed is a tea.Msg that indicates a ResolveRepo() API operation has failed.

Jump to

Keyboard shortcuts

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