Documentation ¶
Index ¶
- Constants
- Variables
- func GetRepositoryFromUrlInput(multiWorkspace bool, workspaceOrder int, apiClient *apiclient.APIClient, ...) (*apiclient.GitRepository, error)
- func GetWorkspaceConfigurationForm(workspaceConfiguration *WorkspaceConfigurationData) *huh.Form
- func RenderSummary(name string, workspaceList []apiclient.CreateWorkspaceDTO, ...) (string, error)
- func RunAddMoreWorkspacesForm() (bool, error)
- func RunSubmissionForm(params SubmissionFormParams) error
- func RunWorkspaceConfiguration(workspaceList *[]apiclient.CreateWorkspaceDTO, ...) (bool, error)
- type Model
- type Styles
- type SubmissionFormParams
- type SummaryModel
- type WorkspaceConfigurationData
- type WorkspaceDetail
Constants ¶
View Source
const (
DEVCONTAINER_FILEPATH = ".devcontainer/devcontainer.json"
)
Variables ¶
View Source
var WorkspacesConfigurationChanged bool
Functions ¶
func GetRepositoryFromUrlInput ¶ added in v0.16.0
func GetWorkspaceConfigurationForm ¶ added in v0.52.0
func GetWorkspaceConfigurationForm(workspaceConfiguration *WorkspaceConfigurationData) *huh.Form
func RenderSummary ¶ added in v0.13.0
func RenderSummary(name string, workspaceList []apiclient.CreateWorkspaceDTO, defaults *views_util.WorkspaceTemplateDefaults, nameLabel string) (string, error)
func RunAddMoreWorkspacesForm ¶ added in v0.52.0
func RunSubmissionForm ¶ added in v0.15.0
func RunSubmissionForm(params SubmissionFormParams) error
func RunWorkspaceConfiguration ¶ added in v0.52.0
func RunWorkspaceConfiguration(workspaceList *[]apiclient.CreateWorkspaceDTO, defaults views_util.WorkspaceTemplateDefaults, isTemplateImport bool) (bool, error)
Types ¶
type Styles ¶
type SubmissionFormParams ¶ added in v0.52.0
type SubmissionFormParams struct { ChosenName *string SuggestedName string WorkspaceList *[]apiclient.CreateWorkspaceDTO NameLabel string Defaults *views_util.WorkspaceTemplateDefaults ExistingWorkspaceNames []string ImportConfirmation *bool }
type SummaryModel ¶ added in v0.13.0
type SummaryModel struct {
// contains filtered or unexported fields
}
func NewSummaryModel ¶ added in v0.13.0
func NewSummaryModel(params SubmissionFormParams) 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
type WorkspaceConfigurationData ¶ added in v0.52.0
type WorkspaceConfigurationData struct { Name string BuildChoice string DevcontainerFilePath string Image string User string EnvVars map[string]string }
func NewConfigurationData ¶ added in v0.24.0
func NewConfigurationData(buildChoice views_util.BuildChoice, devContainerFilePath string, currentWorkspace *apiclient.CreateWorkspaceDTO, defaults *views_util.WorkspaceTemplateDefaults) *WorkspaceConfigurationData
type WorkspaceDetail ¶ added in v0.52.0
type WorkspaceDetail string
const ( Repository WorkspaceDetail = "Repository" Branch WorkspaceDetail = "Branch" Build WorkspaceDetail = "Build" DevcontainerConfig WorkspaceDetail = "Devcontainer Config" Image WorkspaceDetail = "Image" User WorkspaceDetail = "User" EnvVars WorkspaceDetail = "Env Vars" EMPTY_STRING = "" DEFAULT_PADDING = 21 )
Click to show internal directories.
Click to hide internal directories.