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

Additional verbosity level for tk fmt: Only print changed files, not all files #943

Open
nogweii opened this issue Oct 31, 2023 · 1 comment

Comments

@nogweii
Copy link

nogweii commented Oct 31, 2023

I'm looking for a middle ground between the current default output when making formatting changes with tk fmt and it's verbose mode (passing -v).

  • With no flags passed, tk fmt prints only a summary count of the files changed. Or reports that no files needed changing.
  • With the verbose flag passed, it prints out every file found, and includes if that file was formatted.

I'd like a new option (or maybe changing the behavior when no flags are passed?) so that when tk fmt is formatting a file, it will print out which ones it changed.

@zerok
Copy link
Contributor

zerok commented May 27, 2024

Hi :) Would running something like that also solve your use-case?

tk fmt -venvironments/test 2&>1 | grep 'fmt '

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

No branches or pull requests

2 participants