mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 20:35:24 +01:00
23 lines
429 B
Go
23 lines
429 B
Go
package db_lib
|
|
|
|
import "github.com/ansible-semaphore/semaphore/util"
|
|
|
|
func CreateDefaultGitClient() GitClient {
|
|
switch util.Config.GitClientId {
|
|
case util.GoGitClientId:
|
|
return CreateGoGitClient()
|
|
case util.CmdGitClientId:
|
|
return CreateCmdGitClient()
|
|
default:
|
|
return CreateCmdGitClient()
|
|
}
|
|
}
|
|
|
|
func CreateGoGitClient() GitClient {
|
|
return GoGitClient{}
|
|
}
|
|
|
|
func CreateCmdGitClient() GitClient {
|
|
return CmdGitClient{}
|
|
}
|