selection

package
v0.17.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CheckoutDefault = CheckoutOption{Title: "Clone the default branch", Id: "default"}
	CheckoutBranch  = CheckoutOption{Title: "Branches", Id: "branch"}
	CheckoutPR      = CheckoutOption{Title: "Pull/Merge requests", Id: "pullrequest"}
)
View Source
var CustomRepoIdentifier = "<CUSTOM_REPO>"
View Source
var DoneConfiguring = apiclient.CreateWorkspaceRequestProject{Name: "DoneConfiguringName"}

Functions

func GetBranchFromPrompt added in v0.16.0

func GetBranchFromPrompt(branches []apiclient.GitBranch, additionalProjectOrder int) *apiclient.GitBranch

func GetNamespaceIdFromPrompt

func GetNamespaceIdFromPrompt(namespaces []apiclient.GitNamespace, additionalProjectOrder int) string

func GetProjectFromPrompt added in v0.2.0

func GetProjectFromPrompt(projects []apiclient.Project, actionVerb string) *apiclient.Project

func GetProjectRequestFromPrompt added in v0.13.0

func GetProjectRequestFromPrompt(projects []apiclient.CreateWorkspaceRequestProject) *apiclient.CreateWorkspaceRequestProject

func GetProviderIdFromPrompt

func GetProviderIdFromPrompt(gitProviders []gitprovider_view.GitProviderView, additionalProjectOrder int) string

func GetPullRequestFromPrompt

func GetPullRequestFromPrompt(pullRequests []apiclient.GitPullRequest, additionalProjectOrder int) *apiclient.GitPullRequest

func GetRepositoryFromPrompt

func GetRepositoryFromPrompt(repositories []apiclient.GitRepository, index int) *apiclient.GitRepository

func GetWorkspaceFromPrompt added in v0.2.0

func GetWorkspaceFromPrompt(workspaces []apiclient.WorkspaceDTO, actionVerb string) *apiclient.WorkspaceDTO

Types

type CheckoutOption added in v0.11.0

type CheckoutOption struct {
	Title string
	Id    string
}

func GetCheckoutOptionFromPrompt

func GetCheckoutOptionFromPrompt(additionalProjectOrder int, checkoutOptions []CheckoutOption) CheckoutOption

type ItemDelegate added in v0.4.0

type ItemDelegate[T any] struct {
}

func (ItemDelegate[T]) Height added in v0.4.0

func (d ItemDelegate[T]) Height() int

func (ItemDelegate[T]) Render added in v0.4.0

func (d ItemDelegate[T]) Render(w io.Writer, m list.Model, index int, listItem list.Item)

func (ItemDelegate[T]) Spacing added in v0.4.0

func (d ItemDelegate[T]) Spacing() int

func (ItemDelegate[T]) Update added in v0.4.0

func (d ItemDelegate[T]) Update(msg tea.Msg, m *list.Model) tea.Cmd

Jump to

Keyboard shortcuts

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