Open vBoykoGit opened 4 years ago
@saagarjha I remember we can use Swimat in command line right?
Yeah, we do. swimat -r
or find . -name *.swift | xargs swimat
might be helpful.
Yeah, we do.
swimat -r
orfind . -name *.swift | xargs swimat
might be helpful.
It only formats files inside the current folder but not in the subfolders.
The former or the latter? I am fairly sure the second one should work since it's not our code doing path traversal…
Do you guys think we should mention this in our README? After that I think we ok to close it?
Do you guys think we should mention this in our README? After that I think we ok to close it?
Absolutely, it would be very helpful.
@vBoykoGit Just want to check again on the issue, does both way @saagarjha provide is working?
@saagarjha Seems you're the best people to update README on this part, would you like to help? I think both how to install and how to use is useful for most people.
Sure, I think adding a section describing command-line usage would probably be helpful; I'll write one.
I got
% swimat -r
Finished formatting 0 files.
But there are swift files in the directory.
swimat -r
Finished formatting 0 files.
+++
in your project root dirctory
swimat -r .
Is it possible?