Function
log_cli_command
(subcommand: str, subcommand_args: List[str], stdin: Optional[str], pwd: str)
Source from the content-addressed store, hash-verified
| 231 | |
| 232 | |
| 233 | def 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 | |
Tested by
no test coverage detected