From 683683a0eceef5e1322e9a22685223872c381156 Mon Sep 17 00:00:00 2001 From: Joe Dinius Date: Mon, 20 May 2024 11:13:58 -0700 Subject: [PATCH] Apply leading dashes to export command output Closes #273 Applying this change to the export subcommand will allow its output to pass pre-commit checks for yaml validation. --- vcstool/commands/export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcstool/commands/export.py b/vcstool/commands/export.py index 6140c206..4dd91940 100644 --- a/vcstool/commands/export.py +++ b/vcstool/commands/export.py @@ -46,7 +46,7 @@ def output_export_data(result, hide_empty=False): return try: - lines = [] + lines = ["---"] lines.append(' %s:' % result['path']) lines.append(' type: ' + result['client'].__class__.type) export_data = result['export_data']