treefmt/cli
Brian McGee 089eb171a0
fix: --stdin flag
This was incorrectly ported from Rust to Go.

When `--stdin` is provided, `treefmt` copy the `stdin` into a temporary file, using the first path argument as the filename. This allows the user to control which formatters will match this temp file based on their `treefmt` config.

After the formatters have been applied, the contents of this temporary file are then printed to stdout and the temp file is removed.

Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-06-05 15:06:10 +01:00
..
cli.go fix: --stdin flag 2024-06-05 15:06:10 +01:00
format_test.go fix: --stdin flag 2024-06-05 15:06:10 +01:00
format.go fix: --stdin flag 2024-06-05 15:06:10 +01:00
helpers_test.go fix: --stdin flag 2024-06-05 15:06:10 +01:00
mappers.go feat: add --on-unmatched 2024-05-29 10:32:02 +01:00