From c9504699662fcab8bcb270cf1c0f8cff2b281dd9 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Thu, 9 Feb 2023 00:06:52 +0100 Subject: [PATCH] Update radicli and add parent placeholder --- requirements.txt | 2 +- setup.cfg | 2 +- spacy/cli/_util.py | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index b8315a198..b7ef39116 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,7 +11,7 @@ srsly>=2.4.3,<3.0.0 catalogue>=2.0.6,<2.1.0 pathy>=0.10.0 smart-open>=5.2.1,<7.0.0 -radicli>=0.0.1,<1.0.0 +radicli>=0.0.2,<1.0.0 # Third party dependencies numpy>=1.15.0 requests>=2.13.0,<3.0.0 diff --git a/setup.cfg b/setup.cfg index 278e809b3..87833fb36 100644 --- a/setup.cfg +++ b/setup.cfg @@ -41,7 +41,7 @@ install_requires = wasabi>=0.9.1,<1.2.0 srsly>=2.4.3,<3.0.0 catalogue>=2.0.6,<2.1.0 - radicli>=0.0.1,<1.0.0 + radicli>=0.0.2,<1.0.0 # Third-party dependencies pathy>=0.10.0 smart-open>=5.2.1,<7.0.0 diff --git a/spacy/cli/_util.py b/spacy/cli/_util.py index 2aef76198..2167558d4 100644 --- a/spacy/cli/_util.py +++ b/spacy/cli/_util.py @@ -36,7 +36,6 @@ HELP = """spaCy Command-line Interface DOCS: https://spacy.io/api/cli """ -# TODO: need to find a way to inject these now PROJECT_HELP = f"""Command-line interface for spaCy projects and templates. You'd typically start by cloning a project template to a local directory and fetching its assets like datasets etc. See the project's {PROJECT_FILE} for the @@ -51,6 +50,10 @@ INIT_HELP = """Commands for initializing configs and pipeline packages.""" # CLI cli = radicli.Radicli(prog=COMMAND, help=HELP) +cli.placeholder("project", description=PROJECT_HELP) +cli.placeholder("debug", description=DEBUG_HELP) +cli.placeholder("benchmark", description=BENCHMARK_HELP) +cli.placeholder("init", description=INIT_HELP) def setup_cli() -> None: