spud/service_definition/paths.go

14 lines
164 B
Go
Raw Normal View History

package service_definition
import (
"strings"
)
func GetPathType(path string) string {
if strings.HasPrefix(path, "git+") {
return "git"
}
return "file"
}