GetClonePath gets the correct clonePath for a project, given the semantics in devfile/api
(project *dw.Project)
| 152 | |
| 153 | // GetClonePath gets the correct clonePath for a project, given the semantics in devfile/api |
| 154 | func GetClonePath(project *dw.Project) string { |
| 155 | if project.ClonePath != "" { |
| 156 | return project.ClonePath |
| 157 | } |
| 158 | return project.Name |
| 159 | } |
| 160 | |
| 161 | func hasContainerComponents(workspace *dw.DevWorkspaceTemplateSpec) bool { |
| 162 | for _, component := range workspace.Components { |
no outgoing calls
no test coverage detected