MCPcopy Index your code
hub / github.com/ArchiveBox/ArchiveBox / main

Function main

archivebox/cli/archivebox_shell.py:18–30  ·  view source on GitHub ↗
(args: Optional[List[str]]=None, stdin: Optional[IO]=None, pwd: Optional[str]=None)

Source from the content-addressed store, hash-verified

16
17@docstring(shell.__doc__)
18def main(args: Optional[List[str]]=None, stdin: Optional[IO]=None, pwd: Optional[str]=None) -> None:
19 parser = argparse.ArgumentParser(
20 prog=__command__,
21 description=shell.__doc__,
22 add_help=True,
23 formatter_class=SmartFormatter,
24 )
25 parser.parse_args(args or ())
26 reject_stdin(__command__, stdin)
27
28 shell(
29 out_dir=pwd or OUTPUT_DIR,
30 )
31
32
33if __name__ == '__main__':

Callers 1

Calls 2

reject_stdinFunction · 0.85
shellFunction · 0.85

Tested by

no test coverage detected