mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-28 13:44:14 -04:00
add urls log to Crawl model
This commit is contained in:
parent
28386ff172
commit
b948e49013
6 changed files with 68 additions and 28 deletions
|
@ -120,7 +120,8 @@ def cli(ctx, help=False):
|
|||
def main(args=None, prog_name=None):
|
||||
# show `docker run archivebox xyz` in help messages if running in docker
|
||||
IN_DOCKER = os.environ.get('IN_DOCKER', False) in ('1', 'true', 'True', 'TRUE', 'yes')
|
||||
prog_name = prog_name or ('docker compose run archivebox' if IN_DOCKER else 'archivebox')
|
||||
IS_TTY = sys.stdin.isatty()
|
||||
prog_name = prog_name or (f'docker compose run{"" if IS_TTY else " -T"} archivebox' if IN_DOCKER else 'archivebox')
|
||||
|
||||
try:
|
||||
cli(args=args, prog_name=prog_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue