create

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEVCONTAINER_FILEPATH = ".devcontainer/devcontainer.json"
)

Variables

View Source
var WorkspacesConfigurationChanged bool

Functions

func GetRepositoryFromUrlInput added in v0.16.0

func GetRepositoryFromUrlInput(multiWorkspace bool, workspaceOrder int, apiClient *apiclient.APIClient, selectedRepos map[string]int) (*apiclient.GitRepository, error)

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 RunAddMoreWorkspacesForm() (bool, error)

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 Model

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

type Styles

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

func NewStyles

func NewStyles(lg *lipgloss.Renderer) *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) 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

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
)

Jump to

Keyboard shortcuts

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