ExecutableGitService
struct ExecutableGitService
The ExecutableGitService
-
The Executable
Declaration
Swift
let executable: Executable
-
Retrieve value for GitConfigKey
Declaration
Swift
func getValue(for key: GitConfigKey) -> String?Parameters
keyThe GitConfigKey
Return Value
The corresponding value if available
-
Retrieve remote URL for Repository
Declaration
Swift
func getRemoteURL(repositoryPath: String) -> String?Parameters
repositoryPathThe repository path
Return Value
The remot URL if available
-
Retrieve latest Tag from repository URL
Declaration
Swift
func getLatestTag(repositoryURL: String) -> String?Parameters
repositoryURLThe repository URL
Return Value
The latest Tag if available
-
Clone Git Repo from URL to Path
Throws
If cloning failsDeclaration
Swift
func clone(from url: String, to path: String, branch: GitBranch) throwsParameters
urlThe Git Repo URL
pathThe Path where the cloned repo should be stored
branchThe GitBranch
View on GitHub
ExecutableGitService Structure Reference