Output linter conform markdown

This commit is contained in:
jpk 2023-12-08 14:39:42 +01:00
parent cd4ae5846a
commit 2abaddede8
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ def iter_commands(
if isinstance(cliobj, click.Group):
if depth > 1:
yield f"{'#'*depth} {tool_name} {cliobj.name}"
yield f"{'#'*depth} {tool_name} {cliobj.name}\n"
for name in sorted(cliobj.commands):
yield from iter_commands(
@ -54,7 +54,7 @@ def generate_usage_md(script: str, version: str):
module_name = module_name.split(".")[0]
print(
f"# {module_name.capitalize()} v{version} - {script_name} - Command Usage Overview",
f"# {module_name.capitalize()} v{version} - {script_name} - Command Usage Overview\n",
file=fd,
)
for command in iter_commands(script_name, [], cli):