Skip to content

Commit

Permalink
Fix CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
janheinrichmerker committed Apr 15, 2024
1 parent 948a55e commit 5eb084c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 0 additions & 8 deletions archive_query_log/cli/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,14 +433,6 @@ def warc_direct_answers_add(
)


@warc_direct_answers.command("import")
@option("-s", "--services-file", "services_path",
type=PathType(path_type=Path, exists=True, file_okay=True,
dir_okay=False, readable=True, resolve_path=True,
allow_dash=False),
default=Path("data") / "selected-services.yaml")


@parsers.group()
def warc_main_content() -> None:
pass
Expand Down
8 changes: 8 additions & 0 deletions archive_query_log/cli/serps.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ def warc_snippets(config: Config) -> None:
parse_serps_warc_snippets(config)


@parse.command()
@pass_config
def warc_direct_answers(config: Config) -> None:
from archive_query_log.parsers.warc_direct_answers import \
parse_serps_warc_direct_answers
parse_serps_warc_direct_answers(config)


@serps.group()
def download():
pass
Expand Down

0 comments on commit 5eb084c

Please sign in to comment.