diff --git a/README.md b/README.md index 089c209..1a2b20d 100644 --- a/README.md +++ b/README.md @@ -45,9 +45,7 @@ - `--homework / --no-homework`: [default: homework] - `-j, --jobs INTEGER`: [default: 8] - `-l, --language [en|zh]`: [default: en] -- `--log-level [NOTSET|DEBUG|INFO|WARNING|ERROR|CRITICAL]`: [env var: LOG_LEVEL] [default: INFO] -- `--install-completion`: Install completion for the current shell. -- `--show-completion`: Show completion for the current shell, to copy it or customize the installation. +- `--log-level [NOTSET|DEBUG|INFO|WARNING|ERROR|CRITICAL]`: [env var: LOG_LEVEL; default: INFO] - `--help`: Show this message and exit. ## Features diff --git a/poetry.lock b/poetry.lock index 8e798cf..96523cf 100644 --- a/poetry.lock +++ b/poetry.lock @@ -957,6 +957,22 @@ reference = "mirrors" [[package]] +name = "shellingham" +version = "1.4.0" +description = "Tool to Detect Surrounding Shell" +optional = false +python-versions = "!=3.0,!=3.1,!=3.2,!=3.3,>=2.6" +files = [ + {file = "shellingham-1.4.0-py2.py3-none-any.whl", hash = "sha256:536b67a0697f2e4af32ab176c00a50ac2899c5a05e0d8e2dadac8e58888283f9"}, + {file = "shellingham-1.4.0.tar.gz", hash = "sha256:4855c2458d6904829bd34c299f11fdeed7cfefbf8a2c522e4caea6cd76b3171e"}, +] + +[package.source] +type = "legacy" +url = "https://pypi.tuna.tsinghua.edu.cn/simple" +reference = "mirrors" + +[[package]] name = "six" version = "1.16.0" description = "Python 2 and 3 compatibility utilities" @@ -1034,6 +1050,26 @@ reference = "mirrors" [[package]] +name = "typer-cli" +version = "0.0.14" +description = "Run Typer scripts with completion, without having to create a package, using Typer CLI." +optional = false +python-versions = ">=3.7" +files = [] +develop = false + +[package.dependencies] +colorama = ">=0.4.3,<=0.5.0" +shellingham = ">=1.3.2,<=1.5.0" +typer = ">=0.4.0,<=0.9.0" + +[package.source] +type = "git" +url = "https://github.com/Patarimi/typer-cli.git" +reference = "HEAD" +resolved_reference = "f44b547a0b9ea71e5c7b2dc7d4c1ab1212394e5e" + +[[package]] name = "typing-extensions" version = "4.8.0" description = "Backported and Experimental Type Hints for Python 3.8+" @@ -1137,4 +1173,4 @@ [metadata] lock-version = "2.0" python-versions = ">=3.11,<3.13" -content-hash = "d73538c06a761d8256b7fb16a735dc799b83357b6c395b8ecdcd71680af55289" +content-hash = "135484ca996766c8739177cea702ba0b150b7ae2c7204cf4410490e282995acb" diff --git a/pyproject.toml b/pyproject.toml index f102b0a..4f6a397 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,6 +30,7 @@ isort = "^5.12.0" nuitka = "^1.8.4" pyinstaller = "^6.0.0" +typer-cli = {git = "https://github.com/Patarimi/typer-cli.git"} [tool.poetry.scripts] thu-learn-downloader = "thu_learn_downloader.main:app"