Skip to content

Commit 9b88028

Browse files
committed
Rename makeRelativeTo to makingRelativeTo
1 parent 6ae54a5 commit 9b88028

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Sources/SwiftGen/Commander/ConfigCommands.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ let configRunCommand = command(
9494
guard let parserCmd = allParserCommands.first(where: { $0.name == cmd }) else {
9595
throw Config.Error.missingEntry(key: cmd)
9696
}
97-
entry.makeRelativeTo(inputDir: config.inputDir, outputDir: config.outputDir)
97+
entry.makingRelativeTo(inputDir: config.inputDir, outputDir: config.outputDir)
9898
if verbose {
9999
for item in entry.commandLine(forCommand: cmd) {
100100
logMessage(.info, " $ \(item)")

Sources/SwiftGen/Config/Config.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ extension Config {
8686

8787
private func lint(cmd: String, entry: ConfigEntry, logger: (LogLevel, String) -> Void = logMessage) {
8888
var entry = entry
89-
entry.makeRelativeTo(inputDir: inputDir, outputDir: outputDir)
89+
entry.makingRelativeTo(inputDir: inputDir, outputDir: outputDir)
9090

9191
for inputPath in entry.inputs {
9292
if !inputPath.exists {

Sources/SwiftGen/Config/ConfigEntry.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ struct ConfigEntry {
3131
var inputs: [Path]
3232
var outputs: [ConfigEntryOutput]
3333

34-
mutating func makeRelativeTo(inputDir: Path?, outputDir: Path?) {
34+
mutating func makingRelativeTo(inputDir: Path?, outputDir: Path?) {
3535
if let inputDir = inputDir {
3636
self.inputs = self.inputs.map { $0.isRelative ? inputDir + $0 : $0 }
3737
}
3838
self.outputs = self.outputs.map {
3939
var output = $0
40-
output.makeRelativeTo(outputDir: outputDir)
40+
output.makingRelativeTo(outputDir: outputDir)
4141
return output
4242
}
4343
}

Sources/SwiftGen/Config/ConfigOutput.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ struct ConfigEntryOutput {
2323
var parameters: [String: Any]
2424
var template: TemplateRef
2525

26-
mutating func makeRelativeTo(outputDir: Path?) {
26+
mutating func makingRelativeTo(outputDir: Path?) {
2727
if let outputDir = outputDir, self.output.isRelative {
2828
self.output = outputDir + self.output
2929
}

0 commit comments

Comments
 (0)