Roald87 / TcBlack

Opnionated code formatter for TwinCAT.
MIT License
103 stars 11 forks source link

Show how many files were reformatted #20

Open Roald87 opened 4 years ago

Roald87 commented 4 years ago

Maybe non-verbose mode shows the number of reformatted files:

> TcBlack.exe --filenames C:\SomeFile.TcPOU C:\SecondFile.TcPOU
...
All done! Formatted 1 of total 2 files.

And the verbose mode (-v --verbose) also shows which files were reformatted

> TcBlack.exe --verbose --filenames C:\SomeFile.TcPOU C:\SecondFile.TcPOU
...
All done! Formatted 1 of total 2 files:
 - C:\SomeFile.TcPOU

And if none were formatted:

> TcBlack.exe --filenames C:\SecondFile.TcPOU
...
All done! No files were formatted.