MCPcopy
hub / github.com/ArchiveBox/ArchiveBox / log_cli_command

Function log_cli_command

archivebox/logging_util.py:233–242  ·  view source on GitHub ↗
(subcommand: str, subcommand_args: List[str], stdin: Optional[str], pwd: str)

Source from the content-addressed store, hash-verified

231
232
233def log_cli_command(subcommand: str, subcommand_args: List[str], stdin: Optional[str], pwd: str):
234 cmd = ' '.join(('archivebox', subcommand, *subcommand_args))
235 stderr('{black}[i] [{now}] ArchiveBox v{VERSION}: {cmd}{reset}'.format(
236 now=datetime.now(timezone.utc).strftime('%Y-%m-%d %H:%M:%S'),
237 VERSION=VERSION,
238 cmd=cmd,
239 **ANSI,
240 ))
241 stderr('{black} > {pwd}{reset}'.format(pwd=pwd, **ANSI))
242 stderr()
243
244### Parsing Stage
245

Callers 1

mainFunction · 0.85

Calls 1

stderrFunction · 0.85

Tested by

no test coverage detected