Skip to content

Commit 0748247

Browse files
authored
Write extension sources into an Extensions subdirectory (#141)
* Update Output to write extensions into their own subdirectory * Rerecord snapshots
1 parent ea1b9d7 commit 0748247

88 files changed

Lines changed: 2 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Sources/CreateAPI/Output/Output.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ struct Output {
4444
try groupWriter.write(file: file, header: output.header, template: template, options: options)
4545
}
4646

47+
let extensionWriter = sourcesWriter.writer(in: "Extensions")
4748
for file in output.extensions {
48-
try sourcesWriter.write(file: file, header: output.header, options: options)
49+
try extensionWriter.write(file: file, header: output.header, options: options)
4950
}
5051
}
5152
}

Tests/Support/Snapshots/OctoKit/Sources/AnyJSON.swift renamed to Tests/Support/Snapshots/OctoKit/Sources/Extensions/AnyJSON.swift

File renamed without changes.

Tests/Support/Snapshots/OctoKit/Sources/Paths.swift renamed to Tests/Support/Snapshots/OctoKit/Sources/Extensions/Paths.swift

File renamed without changes.

Tests/Support/Snapshots/OctoKit/Sources/StringCodingKey.swift renamed to Tests/Support/Snapshots/OctoKit/Sources/Extensions/StringCodingKey.swift

File renamed without changes.

Tests/Support/Snapshots/cookpad/Sources/Paths.swift renamed to Tests/Support/Snapshots/cookpad/Sources/Extensions/Paths.swift

File renamed without changes.

Tests/Support/Snapshots/cookpad/Sources/StringCodingKey.swift renamed to Tests/Support/Snapshots/cookpad/Sources/Extensions/StringCodingKey.swift

File renamed without changes.

Tests/Support/Snapshots/discriminator/Sources/Paths.swift renamed to Tests/Support/Snapshots/discriminator/Sources/Extensions/Paths.swift

File renamed without changes.

Tests/Support/Snapshots/discriminator/Sources/StringCodingKey.swift renamed to Tests/Support/Snapshots/discriminator/Sources/Extensions/StringCodingKey.swift

File renamed without changes.

Tests/Support/Snapshots/edgecases-change-access-control/Sources/AnyJSON.swift renamed to Tests/Support/Snapshots/edgecases-change-access-control/Sources/Extensions/AnyJSON.swift

File renamed without changes.

Tests/Support/Snapshots/edgecases-change-access-control/Sources/Paths.swift renamed to Tests/Support/Snapshots/edgecases-change-access-control/Sources/Extensions/Paths.swift

File renamed without changes.

0 commit comments

Comments
 (0)