create

package
v0.50.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var ProjectsConfigurationChanged bool

Functions

func GetProjectConfigurationForm added in v0.17.0

func GetProjectConfigurationForm(projectConfiguration *ProjectConfigurationData) *huh.Form

func GetRepositoryFromUrlInput added in v0.16.0

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

func RenderSummary added in v0.13.0

func RenderSummary(name string, projectList []apiclient.CreateProjectDTO, defaults *views_util.ProjectConfigDefaults, nameLabel string) (string, error)

func RunAddMoreProjectsForm added in v0.16.0

func RunAddMoreProjectsForm() (bool, error)

func RunProjectConfiguration added in v0.24.0

func RunProjectConfiguration(projectList *[]apiclient.CreateProjectDTO, defaults views_util.ProjectConfigDefaults, isConfigImport bool) (bool, error)

func RunSubmissionForm added in v0.15.0

func RunSubmissionForm(config SubmissionFormConfig, pcImport *bool) error

Types

type Model

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

type ProjectConfigurationData added in v0.15.0

type ProjectConfigurationData struct {
	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, currentProject *apiclient.CreateProjectDTO, defaults *views_util.ProjectConfigDefaults) *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"
	EnvVars            ProjectDetail = "Env Vars"
	EMPTY_STRING                     = ""
	DEFAULT_PADDING                  = 21
)

type Styles

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

func NewStyles

func NewStyles(lg *lipgloss.Renderer) *Styles

type SubmissionFormConfig added in v0.24.0

type SubmissionFormConfig struct {
	ChosenName    *string
	SuggestedName string
	ExistingNames []string
	ProjectList   *[]apiclient.CreateProjectDTO
	NameLabel     string
	Defaults      *views_util.ProjectConfigDefaults
}

type SummaryModel added in v0.13.0

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

func NewSummaryModel added in v0.13.0

func NewSummaryModel(config SubmissionFormConfig, pcImport *bool) 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