mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-30 09:39:52 +02:00
only show data locations in version output when in a data dir
This commit is contained in:
@@ -100,8 +100,7 @@ CONFIG_DEFAULTS: Dict[str, ConfigDefaultDict] = {
|
|||||||
'CHROME_USER_DATA_DIR': {'type': str, 'default': None},
|
'CHROME_USER_DATA_DIR': {'type': str, 'default': None},
|
||||||
|
|
||||||
'CHROME_HEADLESS': {'type': bool, 'default': True},
|
'CHROME_HEADLESS': {'type': bool, 'default': True},
|
||||||
'CHROME_SANDBOX': {'type': bool, 'default': True},
|
'CHROME_SANDBOX': {'type': bool, 'default': lambda c: not c['IN_DOCKER']},
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
'DEPENDENCY_CONFIG': {
|
'DEPENDENCY_CONFIG': {
|
||||||
|
@@ -216,10 +216,11 @@ def version(quiet: bool=False,
|
|||||||
print(printable_folder_status(name, folder))
|
print(printable_folder_status(name, folder))
|
||||||
|
|
||||||
print()
|
print()
|
||||||
print('{white}[i] External locations:{reset}'.format(**ANSI))
|
print('{white}[i] Secrets locations:{reset}'.format(**ANSI))
|
||||||
for name, folder in EXTERNAL_LOCATIONS.items():
|
for name, folder in EXTERNAL_LOCATIONS.items():
|
||||||
print(printable_folder_status(name, folder))
|
print(printable_folder_status(name, folder))
|
||||||
|
|
||||||
|
if DATA_LOCATIONS['OUTPUT_DIR']['is_valid']:
|
||||||
print()
|
print()
|
||||||
print('{white}[i] Data locations:{reset}'.format(**ANSI))
|
print('{white}[i] Data locations:{reset}'.format(**ANSI))
|
||||||
for name, folder in DATA_LOCATIONS.items():
|
for name, folder in DATA_LOCATIONS.items():
|
||||||
|
Reference in New Issue
Block a user