From a90dcdaffda66decfad06b56e85a4e72cc3ab57b Mon Sep 17 00:00:00 2001 From: Kirill Morozov Date: Mon, 15 Dec 2025 22:51:17 +0100 Subject: [PATCH 1/2] feat: mention stdin processing in the help --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index d38b367..9c19fa7 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -22,7 +22,7 @@ var ( var rootCmd = &cobra.Command{ Use: "dockerfmt [Dockerfile...]", Short: "dockerfmt is a Dockerfile and RUN step formatter.", - Long: `A updated version of the dockfmt. Uses the dockerfile parser from moby/buildkit and the shell formatter from mvdan/sh.`, + Long: `A updated version of the dockfmt. Uses the dockerfile parser from moby/buildkit and the shell formatter from mvdan/sh. If no Dockerfile arguments specified will process input from the stdin.`, Run: Run, Args: cobra.ArbitraryArgs, } From 0051b0df1036412935021de5dc8b04105ea0d89f Mon Sep 17 00:00:00 2001 From: Kirill Morozov Date: Mon, 15 Dec 2025 22:52:30 +0100 Subject: [PATCH 2/2] docs: update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 13ed7a9..8d8ec09 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ docker run --rm -v $(pwd):/pwd ghcr.io/reteps/dockerfmt:latest /pwd/tests/in/run ## Usage ```output -A updated version of the dockfmt. Uses the dockerfile parser from moby/buildkit and the shell formatter from mvdan/sh. +A updated version of the dockfmt. Uses the dockerfile parser from moby/buildkit and the shell formatter from mvdan/sh. If no Dockerfile arguments specified will process input from the stdin. Usage: dockerfmt [Dockerfile...] [flags]