Documentation ¶
Index ¶
- func AddProjectConfigurationFlags(cmd *cobra.Command, flags ProjectConfigurationFlags, ...)
- func AddProjectFromConfig(projectConfig *apiclient.ProjectConfig, apiClient *apiclient.APIClient, ...) (*string, error)
- func CheckAnyProjectConfigurationFlagSet(flags ProjectConfigurationFlags) bool
- func GetBranchFromProjectConfig(projectConfig *apiclient.ProjectConfig, apiClient *apiclient.APIClient, ...) (*apiclient.GitBranch, error)
- func GetCreateProjectDtoFromFlags(projectConfigurationFlags ProjectConfigurationFlags) (*apiclient.CreateProjectDTO, error)
- func GetGitProviderConfigIdFromFlag(ctx context.Context, apiClient *apiclient.APIClient, ...) (*string, error)
- func GetProjectNameFromRepo(repoUrl string) string
- func GetProjectProviderMetadata(workspace *apiclient.WorkspaceDTO, projectName string) (string, error)
- func GetProjectsCreationDataFromPrompt(config ProjectsDataPromptConfig) ([]apiclient.CreateProjectDTO, error)
- func GetSanitizedProjectName(projectName string) (string, error)
- func GetSuggestedName(initialSuggestion string, existingNames []string) string
- func GetTarget(config GetTargetConfig) (*target_view.TargetView, error)
- func IsProjectRunning(workspace *apiclient.WorkspaceDTO, projectName string) bool
- func SetBranchFromWizard(config BranchWizardConfig) (*apiclient.GitRepository, error)
- type BranchWizardConfig
- type GetTargetConfig
- type ProjectConfigurationFlags
- type ProjectsDataPromptConfig
- type RepositoryWizardConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddProjectConfigurationFlags ¶ added in v0.28.0
func AddProjectConfigurationFlags(cmd *cobra.Command, flags ProjectConfigurationFlags, multiProjectFlagException bool)
func AddProjectFromConfig ¶ added in v0.24.0
func AddProjectFromConfig(projectConfig *apiclient.ProjectConfig, apiClient *apiclient.APIClient, projects *[]apiclient.CreateProjectDTO, branchFlag *string) (*string, error)
func CheckAnyProjectConfigurationFlagSet ¶ added in v0.28.0
func CheckAnyProjectConfigurationFlagSet(flags ProjectConfigurationFlags) bool
func GetBranchFromProjectConfig ¶ added in v0.24.0
func GetCreateProjectDtoFromFlags ¶ added in v0.28.0
func GetCreateProjectDtoFromFlags(projectConfigurationFlags ProjectConfigurationFlags) (*apiclient.CreateProjectDTO, error)
func GetGitProviderConfigIdFromFlag ¶ added in v0.38.0
func GetProjectNameFromRepo ¶ added in v0.13.0
func GetProjectProviderMetadata ¶ added in v0.28.0
func GetProjectProviderMetadata(workspace *apiclient.WorkspaceDTO, projectName string) (string, error)
func GetProjectsCreationDataFromPrompt ¶ added in v0.24.0
func GetProjectsCreationDataFromPrompt(config ProjectsDataPromptConfig) ([]apiclient.CreateProjectDTO, error)
func GetSanitizedProjectName ¶ added in v0.19.0
func GetSuggestedName ¶ added in v0.24.0
func GetTarget ¶ added in v0.38.0
func GetTarget(config GetTargetConfig) (*target_view.TargetView, error)
func IsProjectRunning ¶ added in v0.24.0
func IsProjectRunning(workspace *apiclient.WorkspaceDTO, projectName string) bool
func SetBranchFromWizard ¶ added in v0.26.0
func SetBranchFromWizard(config BranchWizardConfig) (*apiclient.GitRepository, error)
Types ¶
type BranchWizardConfig ¶ added in v0.24.0
type GetTargetConfig ¶ added in v0.40.0
type ProjectConfigurationFlags ¶ added in v0.28.0
type ProjectConfigurationFlags struct { Builder *views_util.BuildChoice CustomImage *string CustomImageUser *string Branches *[]string DevcontainerPath *string EnvVars *[]string Manual *bool GitProviderConfig *string }
type ProjectsDataPromptConfig ¶ added in v0.24.0
type ProjectsDataPromptConfig struct { UserGitProviders []apiclient.GitProvider ProjectConfigs []apiclient.ProjectConfig Manual bool SkipBranchSelection bool MultiProject bool BlankProject bool ApiClient *apiclient.APIClient Defaults *views_util.ProjectConfigDefaults }
Click to show internal directories.
Click to hide internal directories.