File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -61,8 +61,10 @@ public final class UBKit {
6161 }
6262
6363 switch arg {
64+ case . config:
65+ createConfiguration ( workingPath: workingPath, completion)
6466 case . initialize:
65- initialize ( workingPath : workingPath , completion )
67+ break
6668 case . generate:
6769 generate ( manager: kitManager, completion)
6870 }
@@ -82,11 +84,12 @@ public final class UBKit {
8284private extension UBKit {
8385
8486 enum Argument : String {
87+ case config
8588 case initialize = " init "
8689 case generate
8790 }
8891
89- func initialize ( workingPath: String , _ completion: @escaping ( ( Error ? ) -> Void ) ) {
92+ func createConfiguration ( workingPath: String , _ completion: @escaping ( ( Error ? ) -> Void ) ) {
9093 guard fileManager. createFile (
9194 atPath: workingPath. appending ( " ubconfig.json " ) ,
9295 contents: File . configFile ( ) ,
You can’t perform that action at this time.
0 commit comments