Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format whole project #223

Open
vBoykoGit opened this issue Jun 2, 2020 · 12 comments
Open

Format whole project #223

vBoykoGit opened this issue Jun 2, 2020 · 12 comments

Comments

@vBoykoGit
Copy link

Is it possible?

@Jintin
Copy link
Owner

Jintin commented Jul 4, 2020

@saagarjha I remember we can use Swimat in command line right?

@saagarjha
Copy link
Collaborator

Yeah, we do. swimat -r or find . -name *.swift | xargs swimat might be helpful.

@vBoykoGit
Copy link
Author

Yeah, we do. swimat -r or find . -name *.swift | xargs swimat might be helpful.

It only formats files inside the current folder but not in the subfolders.

@saagarjha
Copy link
Collaborator

The former or the latter? I am fairly sure the second one should work since it's not our code doing path traversal…

@Jintin
Copy link
Owner

Jintin commented Aug 22, 2020

Do you guys think we should mention this in our README?
After that I think we ok to close it?

@vBoykoGit
Copy link
Author

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.

@Jintin
Copy link
Owner

Jintin commented Aug 23, 2020

@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.

@saagarjha
Copy link
Collaborator

Sure, I think adding a section describing command-line usage would probably be helpful; I'll write one.

@vBoykoGit
Copy link
Author

I got

 % swimat -r                          
Finished formatting 0 files.

But there are swift files in the directory.

@chenYtao
Copy link

swimat -r
Finished formatting 0 files.

@vBoykoGit
Copy link
Author

vBoykoGit commented Jan 24, 2021

+++

@Ehco1996
Copy link

in your project root dirctory

swimat -r .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants