create

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureProjects added in v0.13.0

func ConfigureProjects(projectList []apiclient.CreateWorkspaceRequestProject, apiServerConfig apiclient.ServerConfig) ([]apiclient.CreateWorkspaceRequestProject, error)

func GetProjectConfigurationForm added in v0.17.0

func GetProjectConfigurationForm(projectConfiguration *ProjectConfigurationData) *huh.Form

func GetRepositoryFromUrlInput added in v0.16.0

func GetRepositoryFromUrlInput(multiProject bool, apiClient *apiclient.APIClient) (*apiclient.GitRepository, error)

func RenderSummary added in v0.13.0

func RenderSummary(workspaceName string, projectList []apiclient.CreateWorkspaceRequestProject) (string, error)

func RunAddMoreProjectsForm added in v0.16.0

func RunAddMoreProjectsForm() (bool, error)

func RunAdditionalProjectRepoForm added in v0.16.0

func RunAdditionalProjectRepoForm(index int, apiClient *apiclient.APIClient) (*apiclient.GitRepository, bool, error)

func RunSubmissionForm added in v0.15.0

func RunSubmissionForm(workspaceName *string, suggestedName string, workspaceNames []string, projectList *[]apiclient.CreateWorkspaceRequestProject, apiServerConfig *apiclient.ServerConfig) error

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

type ProjectConfigurationData added in v0.15.0

type ProjectConfigurationData struct {
	BuilderChoice        string
	DevcontainerFilePath string
	Image                string
	User                 string
	PostStartCommands    []string
	EnvVars              map[string]string
}

type Styles

type Styles struct {
	Base,
	HeaderText,
	Status,
	StatusHeader,
	Highlight,
	ErrorHeaderText,
	Help lipgloss.Style
}

func NewStyles

func NewStyles(lg *lipgloss.Renderer) *Styles

type SummaryModel added in v0.13.0

type SummaryModel struct {
	// contains filtered or unexported fields
}

func NewSummaryModel added in v0.13.0

func NewSummaryModel(workspaceName *string, suggestedName string, workspaceNames []string, projectList []apiclient.CreateWorkspaceRequestProject) SummaryModel

func (SummaryModel) Init added in v0.13.0

func (m SummaryModel) Init() tea.Cmd

func (SummaryModel) Update added in v0.13.0

func (m SummaryModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (SummaryModel) View added in v0.13.0

func (m SummaryModel) View() string

Jump to

Keyboard shortcuts

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