ntt format did not output the file on stdout, when the format was correct. This was very confusing. This commit introduces the same behaviour as gofmt:
ntt format: always print file to stdout
ntt format -l: print the file name to stdout if the has to be formatted.
ntt format --diff: print the diff to stdout, if any.
This commit also does not add any newlines as before,
ntt format did not output the file on stdout, when the format was correct. This was very confusing. This commit introduces the same behaviour as gofmt:
ntt format
: always print file to stdoutntt format -l
: print the file name to stdout if the has to be formatted.ntt format --diff
: print the diff to stdout, if any.This commit also does not add any newlines as before,