From 43a4a6c4f5281a9f5035485595f31aff03e16636 Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Tue, 26 Mar 2024 10:04:32 +0100 Subject: [PATCH] Rework the docs script to work with click --- scripts/generate_docs | 163 ++++++++++++++---------------------------- 1 file changed, 54 insertions(+), 109 deletions(-) diff --git a/scripts/generate_docs b/scripts/generate_docs index 610c5f8..d6c5605 100755 --- a/scripts/generate_docs +++ b/scripts/generate_docs @@ -4,13 +4,16 @@ Auto-generates documentation from command defs in console.py. """ +import click import html import os import re import shutil import textwrap -from twitchdl.console import COMMANDS +from click import Command + +from twitchdl.cli import cli START_MARKER = "" @@ -19,8 +22,11 @@ END_MARKER = "