mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-13 02:36:32 +03:00
Pass overrides to subcommands in workflows (#9059)
* Pass overrides to subcommands in workflows * Add missing docstring
This commit is contained in:
parent
6ff8d90070
commit
1e9b4b55ee
|
@ -57,6 +57,7 @@ def project_run(
|
||||||
|
|
||||||
project_dir (Path): Path to project directory.
|
project_dir (Path): Path to project directory.
|
||||||
subcommand (str): Name of command to run.
|
subcommand (str): Name of command to run.
|
||||||
|
overrides (Dict[str, Any]): Optional config overrides.
|
||||||
force (bool): Force re-running, even if nothing changed.
|
force (bool): Force re-running, even if nothing changed.
|
||||||
dry (bool): Perform a dry run and don't execute commands.
|
dry (bool): Perform a dry run and don't execute commands.
|
||||||
capture (bool): Whether to capture the output and errors of individual commands.
|
capture (bool): Whether to capture the output and errors of individual commands.
|
||||||
|
@ -72,7 +73,7 @@ def project_run(
|
||||||
if subcommand in workflows:
|
if subcommand in workflows:
|
||||||
msg.info(f"Running workflow '{subcommand}'")
|
msg.info(f"Running workflow '{subcommand}'")
|
||||||
for cmd in workflows[subcommand]:
|
for cmd in workflows[subcommand]:
|
||||||
project_run(project_dir, cmd, force=force, dry=dry, capture=capture)
|
project_run(project_dir, cmd, overrides=overrides, force=force, dry=dry, capture=capture)
|
||||||
else:
|
else:
|
||||||
cmd = commands[subcommand]
|
cmd = commands[subcommand]
|
||||||
for dep in cmd.get("deps", []):
|
for dep in cmd.get("deps", []):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user