From e258eec7f119b47d30dc2a3300e501494e86954f Mon Sep 17 00:00:00 2001 From: Sara Thon Date: Fri, 5 Jun 2026 10:05:23 +0200 Subject: [PATCH] CFE-4665: `cfengine dev format docs` should tell you what files it formatted Ticket: CFE-4665 --- src/cfengine_cli/docs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cfengine_cli/docs.py b/src/cfengine_cli/docs.py index 26deceb..25b48ef 100644 --- a/src/cfengine_cli/docs.py +++ b/src/cfengine_cli/docs.py @@ -256,7 +256,6 @@ def _process_markdown_code_blocks( return if syntax_check: - # We currently only print the filenames during linting, not formatting print( f"Processing code blocks (snippets) inside {origin_paths_len} markdown files:" ) @@ -268,6 +267,8 @@ def _process_markdown_code_blocks( if syntax_check and not parsed_markdowns["files"][origin_path]["code-blocks"]: print(f"{prefix}SKIP: No code blocks in '{origin_path}'") continue + if autoformat: + print(f"Formatting '{origin_path}'") for i, code_block in enumerate( parsed_markdowns["files"][origin_path]["code-blocks"] ):