mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-16 08:04:26 -04:00
colorize hints in CLI output more consistently
This commit is contained in:
parent
c68543af74
commit
44bd6866ac
2 changed files with 7 additions and 6 deletions
|
@ -19,10 +19,11 @@ from ..config import (
|
|||
ConfigDict,
|
||||
PYTHON_ENCODING,
|
||||
ANSI,
|
||||
OUTPUT_DIR,
|
||||
IS_TTY,
|
||||
SHOW_PROGRESS,
|
||||
TERM_WIDTH,
|
||||
OUTPUT_DIR,
|
||||
HTML_INDEX_FILENAME,
|
||||
)
|
||||
|
||||
|
||||
|
@ -221,8 +222,8 @@ def log_archiving_paused(num_links: int, idx: int, timestamp: str):
|
|||
total=num_links,
|
||||
))
|
||||
print()
|
||||
print(' To view your archive, open:')
|
||||
print(' {}/index.html'.format(OUTPUT_DIR))
|
||||
print(' {lightred}Hint:{reset} To view your archive index, open:'.format(**ANSI))
|
||||
print(' {}/{}'.format(OUTPUT_DIR, HTML_INDEX_FILENAME))
|
||||
print(' Continue archiving where you left off by running:')
|
||||
print(' archivebox update --resume={}'.format(timestamp))
|
||||
|
||||
|
@ -248,8 +249,8 @@ def log_archiving_finished(num_links: int):
|
|||
print(' - {} links updated'.format(_LAST_RUN_STATS.succeeded))
|
||||
print(' - {} links had errors'.format(_LAST_RUN_STATS.failed))
|
||||
print()
|
||||
print(' To view your archive, open:')
|
||||
print(' {}/index.html'.format(OUTPUT_DIR))
|
||||
print(' {lightred}Hint:{reset} To view your archive index, open:'.format(**ANSI))
|
||||
print(' {}/{}'.format(OUTPUT_DIR, HTML_INDEX_FILENAME))
|
||||
print(' Or run the built-in webserver:')
|
||||
print(' archivebox server')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue