Skip to content

Commit b08349d

Browse files
author
Gerit Wagner
committed
cli: env/local-index: expose tei option
1 parent 13febcf commit b08349d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

colrev/ui_cli/cli.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2347,6 +2347,12 @@ def _print_environment_status(
23472347
@click.option(
23482348
"-i", "--index", is_flag=True, default=False, help="Create the LocalIndex"
23492349
)
2350+
@click.option(
2351+
"--index_tei",
2352+
is_flag=True,
2353+
default=True,
2354+
help="Index TEI files when creating the LocalIndex",
2355+
)
23502356
@click.option(
23512357
"--install",
23522358
help="Install a new resource providing its url "
@@ -2386,6 +2392,7 @@ def _print_environment_status(
23862392
def env(
23872393
ctx: click.core.Context,
23882394
index: bool,
2395+
index_tei: bool,
23892396
install: str,
23902397
pull: bool,
23912398
status: bool,
@@ -2422,7 +2429,6 @@ def env(
24222429
print("Index rankings")
24232430
import colrev.env.local_index_builder
24242431

2425-
index_tei = input("Index TEI files (y/n)?") == "y"
24262432
local_index_builder = colrev.env.local_index_builder.LocalIndexBuilder(
24272433
index_tei=index_tei, verbose_mode=verbose
24282434
)

0 commit comments

Comments
 (0)