feat: Some parameter renaming for consistency
All checks were successful
CI / Ubuntu (push) Successful in 2m36s

This commit is contained in:
2024-12-31 08:31:41 -05:00
parent 147f6df1b3
commit 016f0d6c3f
6 changed files with 39 additions and 45 deletions

View File

@@ -6,16 +6,16 @@ import GitClient
import ShellClient
extension Configuration {
func targetUrl(gitDirectory: String?) throws -> URL {
func targetUrl(projectDirectory: String?) throws -> URL {
guard let target else {
throw ConfigurationParsingError.targetNotFound
}
return try target.url(gitDirectory: gitDirectory)
return try target.url(projectDirectory: projectDirectory)
}
}
private extension Configuration.Target {
func url(gitDirectory: String?) throws -> URL {
func url(projectDirectory: String?) throws -> URL {
@Dependency(\.logger) var logger
let filePath: String
@@ -42,8 +42,8 @@ private extension Configuration.Target {
filePath = "\(path)/\(module.fileNameOrDefault)"
}
if let gitDirectory {
return URL(filePath: "\(gitDirectory)/\(filePath)")
if let projectDirectory {
return URL(filePath: "\(projectDirectory)/\(filePath)")
}
return URL(filePath: filePath)
}