Documentation ¶
Index ¶
- func ConfigureProjects(projectList *[]apiclient.CreateWorkspaceRequestProject, ...) (bool, error)
- func GetProjectConfigurationForm(projectConfiguration *ProjectConfigurationData) *huh.Form
- func GetRepositoryFromUrlInput(multiProject bool, apiClient *apiclient.APIClient) (*apiclient.GitRepository, error)
- func RenderSummary(workspaceName string, projectList []apiclient.CreateWorkspaceRequestProject, ...) (string, error)
- func RunAddMoreProjectsForm() (bool, error)
- func RunAdditionalProjectRepoForm(index int, apiClient *apiclient.APIClient) (*apiclient.GitRepository, bool, error)
- func RunSubmissionForm(workspaceName *string, suggestedName string, workspaceNames []string, ...) error
- type BuildChoice
- type Model
- type ProjectConfigurationData
- type ProjectDetail
- type Styles
- type SummaryModel
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) (bool, error)
func GetProjectConfigurationForm ¶ added in v0.17.0
func GetProjectConfigurationForm(projectConfiguration *ProjectConfigurationData) *huh.Form
func GetRepositoryFromUrlInput ¶ added in v0.16.0
func RenderSummary ¶ added in v0.13.0
func RenderSummary(workspaceName string, projectList []apiclient.CreateWorkspaceRequestProject, apiServerConfig *apiclient.ServerConfig) (string, error)
func RunAddMoreProjectsForm ¶ added in v0.16.0
func RunAdditionalProjectRepoForm ¶ added in v0.16.0
func RunSubmissionForm ¶ added in v0.15.0
func RunSubmissionForm(workspaceName *string, suggestedName string, workspaceNames []string, projectList *[]apiclient.CreateWorkspaceRequestProject, apiServerConfig *apiclient.ServerConfig) error
Types ¶
type BuildChoice ¶ added in v0.19.0
type BuildChoice string
const ( AUTOMATIC BuildChoice = "auto" DEVCONTAINER BuildChoice = "devcontainer" CUSTOMIMAGE BuildChoice = "custom-image" NONE BuildChoice = "none" DEVCONTAINER_FILEPATH = ".devcontainer/devcontainer.json" )
type ProjectConfigurationData ¶ added in v0.15.0
type ProjectConfigurationData struct { BuilderChoice string DevcontainerFilePath string Image string User string PostStartCommands []string EnvVars map[string]string }
func NewProjectConfigurationData ¶ added in v0.19.0
func NewProjectConfigurationData(builderChoice BuildChoice, devContainerFilePath string, currentProject *apiclient.CreateWorkspaceRequestProject, apiServerConfig *apiclient.ServerConfig) *ProjectConfigurationData
type ProjectDetail ¶ added in v0.19.0
type ProjectDetail string
const ( Build ProjectDetail = "Build" DevcontainerConfig ProjectDetail = "Devcontainer Config" Image ProjectDetail = "Image" User ProjectDetail = "User" PostStartCommands ProjectDetail = "Post Start Commands" EnvVars ProjectDetail = "Env Vars" EMPTY_STRING = "" DEFAULT_PADDING = 21 )
type 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, apiServerConfig *apiclient.ServerConfig) SummaryModel
func (SummaryModel) Init ¶ added in v0.13.0
func (m SummaryModel) Init() tea.Cmd
func (SummaryModel) View ¶ added in v0.13.0
func (m SummaryModel) View() string
Click to show internal directories.
Click to hide internal directories.