mirror of https://github.com/databricks/cli.git
17 lines
294 B
Go
17 lines
294 B
Go
|
package libraries
|
||
|
|
||
|
import "github.com/databricks/databricks-sdk-go/service/compute"
|
||
|
|
||
|
func libraryPath(library *compute.Library) string {
|
||
|
if library.Whl != "" {
|
||
|
return library.Whl
|
||
|
}
|
||
|
if library.Jar != "" {
|
||
|
return library.Jar
|
||
|
}
|
||
|
if library.Egg != "" {
|
||
|
return library.Egg
|
||
|
}
|
||
|
return ""
|
||
|
}
|