Skip to content

Conversation

@braydonk
Copy link
Collaborator

@braydonk braydonk commented May 19, 2025

Fixes #244

This PR adds two features for keeping track of which files were edited by yamlfmt:

-verbose, -v: When formatting with verbose mode on, the modified paths will be printed.

-debug diffs: When formatting with diffs debug code, all formatting diffs will be printed.

Additionally:

  • Fixed the tempfile bug that wouldn't replicate subdirectories properly
  • Added -q short version of the -quiet flag

This PR adds two features for keeping track of which files were edited
by yamlfmt:

`-verbose`, `-v`: When formatting with verbose mode on, the modified
paths will be printed.

`-debug diffs`: When formatting with `diffs` debug code, all formatting
diffs will be printed.

Additionally:

* Fixed the `tempfile` bug that wouldn't replicate subdirectories
  properly
* Added `-q` short version of the `-quiet` flag
@braydonk braydonk marked this pull request as draft May 19, 2025 14:26
@braydonk braydonk marked this pull request as ready for review May 25, 2025 12:55
@braydonk braydonk merged commit 45e5cb5 into main May 25, 2025
8 checks passed
steeef pushed a commit to steeef/yamlfmt that referenced this pull request Sep 5, 2025
* Add options for seeing which files were formatted

This PR adds two features for keeping track of which files were edited
by yamlfmt:

`-verbose`, `-v`: When formatting with verbose mode on, the modified
paths will be printed.

`-debug diffs`: When formatting with `diffs` debug code, all formatting
diffs will be printed.

Additionally:

* Fixed the `tempfile` bug that wouldn't replicate subdirectories
  properly
* Added `-q` short version of the `-quiet` flag

* fix integration tests
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

Successfully merging this pull request may close these issues.

yamlfmt doesn't output any error or status when changing files to windows line-endings

2 participants