Output linter conform markdown
This commit is contained in:
parent
cd4ae5846a
commit
2abaddede8
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue