antigluten
(Vladimir Gusev)
1
Hi, I'm trying to use swift-format and that freezes on launch if there are no args provided.
Installed the latest version using homebrew and also then tried to build locally from tag: 510.1.0, eventually this behavior reproduces.
swift-format
Thanks in advance.
allevato
(Tony Allevato)
2
If no paths are provided, swift-format waits for input from stdin, and its default behavior is to write to stdout. If you want to do something like format all the files in the current directory, you can write swift-format --in-place *.swift or swift-format --recursive --in-place ..
1 Like
antigluten
(Vladimir Gusev)
3
Yeah, it worked, kinda missed in docs this behavior, thank you!