diff --git a/pkg/cmd/create/create_quickstart.go b/pkg/cmd/create/create_quickstart.go index 879255c22c..d730ec6708 100644 --- a/pkg/cmd/create/create_quickstart.go +++ b/pkg/cmd/create/create_quickstart.go @@ -114,6 +114,7 @@ func (o *CreateQuickstartOptions) Run() error { return o.CreateQuickStart(q) } +// CreateQuickStart helper method to create a quickstart from a quickstart resource func (o *CreateQuickstartOptions) CreateQuickStart(q *quickstarts.QuickstartForm) error { if q == nil { return fmt.Errorf("no quickstart chosen") diff --git a/pkg/cmd/importcmd/import.go b/pkg/cmd/importcmd/import.go index ca28cf8d02..aa7aa1cfaa 100644 --- a/pkg/cmd/importcmd/import.go +++ b/pkg/cmd/importcmd/import.go @@ -1553,6 +1553,7 @@ func (options *ImportOptions) DefaultsFromTeamSettings() error { return options.DefaultValuesFromTeamSettings(settings) } +// DefaultValuesFromTeamSettings defaults the repository options from the given team settings func (options *ImportOptions) DefaultValuesFromTeamSettings(settings *v1.TeamSettings) error { if options.DeployKind == "" { options.DeployKind = settings.DeployKind