mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 23:24:30 -04:00
only show data locations in version output when in a data dir
This commit is contained in:
parent
a0901ba474
commit
0ef2b17678
2 changed files with 7 additions and 7 deletions
|
@ -216,14 +216,15 @@ def version(quiet: bool=False,
|
|||
print(printable_folder_status(name, folder))
|
||||
|
||||
print()
|
||||
print('{white}[i] External locations:{reset}'.format(**ANSI))
|
||||
print('{white}[i] Secrets locations:{reset}'.format(**ANSI))
|
||||
for name, folder in EXTERNAL_LOCATIONS.items():
|
||||
print(printable_folder_status(name, folder))
|
||||
|
||||
print()
|
||||
print('{white}[i] Data locations:{reset}'.format(**ANSI))
|
||||
for name, folder in DATA_LOCATIONS.items():
|
||||
print(printable_folder_status(name, folder))
|
||||
if DATA_LOCATIONS['OUTPUT_DIR']['is_valid']:
|
||||
print()
|
||||
print('{white}[i] Data locations:{reset}'.format(**ANSI))
|
||||
for name, folder in DATA_LOCATIONS.items():
|
||||
print(printable_folder_status(name, folder))
|
||||
|
||||
print()
|
||||
check_dependencies()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue