MCPcopy
hub / github.com/ArchiveBox/ArchiveBox / run

Function run

archivebox/main.py:294–304  ·  view source on GitHub ↗

Run a given ArchiveBox subcommand with the given list of args

(subcommand: str,
        subcommand_args: Optional[List[str]],
        stdin: Optional[IO]=None,
        out_dir: Path=OUTPUT_DIR)

Source from the content-addressed store, hash-verified

292
293@enforce_types
294def run(subcommand: str,
295 subcommand_args: Optional[List[str]],
296 stdin: Optional[IO]=None,
297 out_dir: Path=OUTPUT_DIR) -> None:
298 """Run a given ArchiveBox subcommand with the given list of args"""
299 run_subcommand(
300 subcommand=subcommand,
301 subcommand_args=subcommand_args,
302 stdin=stdin,
303 pwd=out_dir,
304 )
305
306
307@enforce_types

Callers 15

bin_versionFunction · 0.70
searchFunction · 0.50
save_faviconFunction · 0.50
save_singlefileFunction · 0.50
save_pdfFunction · 0.50
save_domFunction · 0.50
save_mediaFunction · 0.50
save_screenshotFunction · 0.50
save_wgetFunction · 0.50
save_gitFunction · 0.50
save_readabilityFunction · 0.50

Calls 1

run_subcommandFunction · 0.85

Tested by

no test coverage detected