You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After #41 merges I was hoping to be able to use gci as part of a chain of formatting tools, roughly:
gofmt main.go | gci > main.formatted.go
This use-case doesn't work for files with no imports, because gci prints "skip file main.go since no import" to stdout instead of the contents of the file.
It would be better if the "skip file" message was printed to stderr instead of stdout. If -w is passed the tool can still bail out early, but if -w is missing then the file contents should still be printed to stdout.
The text was updated successfully, but these errors were encountered:
After #41 merges I was hoping to be able to use
gci
as part of a chain of formatting tools, roughly:This use-case doesn't work for files with no imports, because
gci
prints "skip file main.go since no import" to stdout instead of the contents of the file.It would be better if the "skip file" message was printed to stderr instead of stdout. If
-w
is passed the tool can still bail out early, but if-w
is missing then the file contents should still be printed to stdout.The text was updated successfully, but these errors were encountered: