JohnSundell / SwiftPlate

Easily generate cross platform Swift framework projects from the command line
MIT License
1.77k stars 87 forks source link

Make Directories Dynamically #9

Closed ArtSabintsev closed 7 years ago

ArtSabintsev commented 7 years ago

Instead of throwing an error if a directory doesn't exist, the script now generates directories dynamically.

Just a rough/dirty implementation for now.

ArtSabintsev commented 7 years ago

I'll fix the merge conflict soon.

ArtSabintsev commented 7 years ago

Alright, this is ready for review. Again, this is a quick and dirty implementation to prove out the concept.

Also, you may want to merge #12 before looking at this one.

JohnSundell commented 7 years ago

@ArtSabintsev It looks like with this implementation, an extra directory will be created. So if specify /users/john/project/ as my destination and then MyProject and the name, the path will be /users/john/project/MyProject/. Is that right?

ArtSabintsev commented 7 years ago

Ya, good point. Not sure what I was thinking. Going to nuke this PR. Thanks.

JohnSundell commented 7 years ago

No problems! 👍