Documentation ¶
Index ¶
- Constants
- Variables
- func GetProjectConfigurationForm(projectConfiguration *ProjectConfigurationData) *huh.Form
- func GetRepositoryFromUrlInput(multiProject bool, projectOrder int, apiClient *apiclient.APIClient, ...) (*apiclient.GitRepository, error)
- func RenderSummary(name string, projectList []apiclient.CreateProjectDTO, ...) (string, error)
- func RunAddMoreProjectsForm() (bool, error)
- func RunProjectConfiguration(projectList *[]apiclient.CreateProjectDTO, defaults ProjectConfigDefaults) (bool, error)
- func RunSubmissionForm(config SubmissionFormConfig) error
- type BuildChoice
- type Model
- type ProjectConfigDefaults
- type ProjectConfigurationData
- type ProjectDetail
- type Styles
- type SubmissionFormConfig
- type SummaryModel
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 RenderSummary ¶ added in v0.13.0
func RenderSummary(name string, projectList []apiclient.CreateProjectDTO, defaults *ProjectConfigDefaults, nameLabel string) (string, error)
func RunAddMoreProjectsForm ¶ added in v0.16.0
func RunProjectConfiguration ¶ added in v0.24.0
func RunProjectConfiguration(projectList *[]apiclient.CreateProjectDTO, defaults ProjectConfigDefaults) (bool, error)
func RunSubmissionForm ¶ added in v0.15.0
func RunSubmissionForm(config SubmissionFormConfig) 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" )
func GetProjectBuildChoice ¶ added in v0.24.0
func GetProjectBuildChoice(project apiclient.CreateProjectDTO, defaults *ProjectConfigDefaults) (BuildChoice, string)
func (*BuildChoice) Set ¶ added in v0.21.0
func (c *BuildChoice) Set(v string) error
Set must have pointer receiver so it doesn't change the value of a copy
func (*BuildChoice) String ¶ added in v0.21.0
func (c *BuildChoice) String() string
String is used both by fmt.Print and by Cobra in help text
func (*BuildChoice) Type ¶ added in v0.21.0
func (c *BuildChoice) Type() string
Type is only used in help text
type ProjectConfigDefaults ¶ added in v0.24.0
type ProjectConfigDefaults struct { BuildChoice BuildChoice Image *string ImageUser *string DevcontainerFilePath string }
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 BuildChoice, devContainerFilePath string, currentProject *apiclient.CreateProjectDTO, defaults *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 SubmissionFormConfig ¶ added in v0.24.0
type SubmissionFormConfig struct { ChosenName *string SuggestedName string ExistingNames []string ProjectList *[]apiclient.CreateProjectDTO NameLabel string Defaults *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) 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.