Documentation ¶
Index ¶
- Constants
- Variables
- func AddLoadMoreOptionToList(items []list.Item) []list.Item
- func GetBranchFromPrompt(branches []apiclient.GitBranch, projectOrder int, ...) (*apiclient.GitBranch, string)
- func GetBuildFromPrompt(builds []apiclient.Build, actionVerb string) *apiclient.Build
- func GetGitProviderConfigFromPrompt(params GetGitProviderConfigParams) *apiclient.GitProvider
- func GetNamespaceIdFromPrompt(namespaces []apiclient.GitNamespace, projectOrder int, ...) (string, string)
- func GetPrebuildFromPrompt(prebuilds []apiclient.PrebuildDTO, actionVerb string) *apiclient.PrebuildDTO
- func GetProjectConfigFromPrompt(projectConfigs []apiclient.ProjectConfig, projectOrder int, ...) *apiclient.ProjectConfig
- func GetProjectFromPrompt(projects []apiclient.Project, actionVerb string) *apiclient.Project
- func GetProjectRequestFromPrompt(projects *[]apiclient.CreateProjectDTO) *apiclient.CreateProjectDTO
- func GetProviderIdFromPrompt(gitProviders []gitprovider_view.GitProviderView, projectOrder int, ...) string
- func GetPullRequestFromPrompt(pullRequests []apiclient.GitPullRequest, projectOrder int, ...) (*apiclient.GitPullRequest, string)
- func GetRepositoryFromPrompt(repositories []apiclient.GitRepository, projectOrder int, ...) (*apiclient.GitRepository, string)
- func GetSampleFromPrompt(samples []apiclient.Sample) *apiclient.Sample
- func GetWorkspaceFromPrompt(workspaces []apiclient.WorkspaceDTO, actionVerb string) *apiclient.WorkspaceDTO
- func GetWorkspacesFromPrompt(workspaces []apiclient.WorkspaceDTO, actionVerb string) []*apiclient.WorkspaceDTO
- type CheckoutOption
- type GetGitProviderConfigParams
- type ItemDelegate
Constants ¶
View Source
const CREATE_FROM_SAMPLE = "<CREATE_FROM_SAMPLE>"
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 BlankProjectIdentifier = "<BLANK_PROJECT>"
View Source
var CustomRepoIdentifier = "<CUSTOM_REPO>"
View Source
var DoneConfiguring = apiclient.CreateProjectDTO{
Name: doneConfiguringName,
}
View Source
var NewGitProviderConfigIdentifier = "<NEW_GIT_PROVIDER_CONFIG>"
View Source
var NewProjectConfigIdentifier = "<NEW_PROJECT_CONFIG>"
View Source
var NoneGitProviderConfigIdentifier = "<NONE>"
Functions ¶
func AddLoadMoreOptionToList ¶ added in v0.38.0
Adds 'Load more' option to a selection list for efficient pagination totalItems count is exclusive of pagination options.
func GetBranchFromPrompt ¶ added in v0.16.0
func GetBuildFromPrompt ¶ added in v0.26.0
func GetGitProviderConfigFromPrompt ¶ added in v0.39.0
func GetGitProviderConfigFromPrompt(params GetGitProviderConfigParams) *apiclient.GitProvider
func GetNamespaceIdFromPrompt ¶
func GetNamespaceIdFromPrompt(namespaces []apiclient.GitNamespace, projectOrder int, selectionListOptions views.SelectionListOptions) (string, string)
func GetPrebuildFromPrompt ¶ added in v0.26.0
func GetPrebuildFromPrompt(prebuilds []apiclient.PrebuildDTO, actionVerb string) *apiclient.PrebuildDTO
func GetProjectConfigFromPrompt ¶ added in v0.24.0
func GetProjectConfigFromPrompt(projectConfigs []apiclient.ProjectConfig, projectOrder int, showBlankOption, withNewProjectConfig bool, actionVerb string) *apiclient.ProjectConfig
func GetProjectFromPrompt ¶ added in v0.2.0
func GetProjectRequestFromPrompt ¶ added in v0.13.0
func GetProjectRequestFromPrompt(projects *[]apiclient.CreateProjectDTO) *apiclient.CreateProjectDTO
func GetProviderIdFromPrompt ¶
func GetProviderIdFromPrompt(gitProviders []gitprovider_view.GitProviderView, projectOrder int, samplesEnabled bool) string
func GetPullRequestFromPrompt ¶
func GetPullRequestFromPrompt(pullRequests []apiclient.GitPullRequest, projectOrder int, selectionListOptions views.SelectionListOptions) (*apiclient.GitPullRequest, string)
func GetRepositoryFromPrompt ¶
func GetRepositoryFromPrompt(repositories []apiclient.GitRepository, projectOrder int, selectedRepos map[string]int, selectionListOptions views.SelectionListOptions) (*apiclient.GitRepository, string)
func GetSampleFromPrompt ¶ added in v0.27.0
func GetWorkspaceFromPrompt ¶ added in v0.2.0
func GetWorkspaceFromPrompt(workspaces []apiclient.WorkspaceDTO, actionVerb string) *apiclient.WorkspaceDTO
func GetWorkspacesFromPrompt ¶ added in v0.18.0
func GetWorkspacesFromPrompt(workspaces []apiclient.WorkspaceDTO, actionVerb string) []*apiclient.WorkspaceDTO
Types ¶
type CheckoutOption ¶ added in v0.11.0
func GetCheckoutOptionFromPrompt ¶
func GetCheckoutOptionFromPrompt(projectOrder int, checkoutOptions []CheckoutOption, parentIdentifier string) CheckoutOption
type GetGitProviderConfigParams ¶ added in v0.40.0
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]) Spacing ¶ added in v0.4.0
func (d ItemDelegate[T]) Spacing() int
Click to show internal directories.
Click to hide internal directories.