Skip to content

Commit

Permalink
fix: move module info print
Browse files Browse the repository at this point in the history
  • Loading branch information
SH-OH committed Mar 12, 2024
1 parent 1a1cae0 commit 9f35b5f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Scripts/GenerateModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,6 @@ func makeModuleInfo() -> ModuleInfo {
print("This module has a 'Demo' Target? (y\\n, default = n)", terminator: " : ")
let hasDemo = readLine()?.lowercased() == "y"

print("")
print("------------------------------------------------------------------------------------------------------------------------")
print("Is this the correct module information you are generating? (y\\n, default = y)")
print("Layer: \(layer.rawValue)")
print("Module name: \(moduleName)")
print("interface: \(hasInterface), testing: \(hasTesting), unitTests: \(hasUnitTests), uiTests: \(hasUITests), demo: \(hasDemo)")
print("------------------------------------------------------------------------------------------------------------------------")

return ModuleInfo(
moduleName: moduleName,
hasInterface: hasInterface,
Expand All @@ -228,6 +220,14 @@ func makeModuleInfo() -> ModuleInfo {
}

func checkModuleInfo() -> Bool {
print("")
print("------------------------------------------------------------------------------------------------------------------------")
print("Is this the correct module information you are generating? (y\\n, default = y)")
print("Layer: \(layer.rawValue)")
print("Module name: \(moduleName)")
print("interface: \(hasInterface), testing: \(hasTesting), unitTests: \(hasUnitTests), uiTests: \(hasUITests), demo: \(hasDemo)")
print("------------------------------------------------------------------------------------------------------------------------")

guard var checkInput = readLine() else {
exit(1)
}
Expand Down

0 comments on commit 9f35b5f

Please sign in to comment.