You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print("=> Failed to write migrated file to \(path)")
67
+
}
68
+
69
+
return !migrator.unmigratableMatches.isEmpty
70
+
}
71
+
72
+
varpValue:String?
73
+
letyesStrings=["y","yes"]
74
+
75
+
while case let option =getopt(CommandLine.argc,CommandLine.unsafeArgv,"p:"), option !=-1{
76
+
switchUnicodeScalar(CUnsignedChar(option)){
77
+
case"p":
78
+
pValue =String(cString: optarg)
79
+
default:
80
+
fatalError("Unknown option")
55
81
}
56
82
}
57
83
58
-
print("This tool will make changes to the Interface Builder (.xib/.storyboard) files in the chosen directory. Please make sure you have no changes in your index before continuing")
59
-
print("Please enter the file path to the Project you want to migrate Interface Builder files to ThunderBasics 2.0.0")
60
-
varfilePath=readLine(strippingNewline:true)
61
-
while filePath ==nil{
62
-
filePath =readLine(strippingNewline:true)
84
+
if pValue ==nil{
85
+
print("=> Running IBMigrationTool in your current working directory, to run in a different directory, provide the -p command line argument")
print("=> This tool will make changes to the Interface Builder (.xib/.storyboard) files in the chosen directory. Please make sure you have no changes in your index before continuing. Please type \"yes\" when you have done this.")
92
+
varyesInput=readLine(strippingNewline:true)
93
+
while !yesStrings.contains(yesInput?.lowercased()??""){
0 commit comments