mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-20 13:21:52 +02:00
require running setup in existing data dir
This commit is contained in:
@@ -15,10 +15,10 @@ from importlib import import_module
|
|||||||
CLI_DIR = Path(__file__).resolve().parent
|
CLI_DIR = Path(__file__).resolve().parent
|
||||||
|
|
||||||
# these common commands will appear sorted before any others for ease-of-use
|
# these common commands will appear sorted before any others for ease-of-use
|
||||||
meta_cmds = ('help', 'version') # dont require valid data folder at all
|
meta_cmds = ('help', 'version') # dont require valid data folder at all
|
||||||
main_cmds = ('init', 'config', 'setup') # dont require existing db present
|
main_cmds = ('init', 'config') # dont require existing db present
|
||||||
archive_cmds = ('add', 'remove', 'update', 'list', 'status') # require existing db present
|
archive_cmds = ('add', 'remove', 'update', 'list', 'status', 'setup') # require existing db present
|
||||||
fake_db = ("oneshot",) # use fake in-memory db
|
fake_db = ("oneshot",) # use fake in-memory db
|
||||||
|
|
||||||
display_first = (*meta_cmds, *main_cmds, *archive_cmds)
|
display_first = (*meta_cmds, *main_cmds, *archive_cmds)
|
||||||
|
|
||||||
|
@@ -983,7 +983,7 @@ def check_dependencies(config: ConfigDict=CONFIG, show_help: bool=True) -> None:
|
|||||||
info['version'] or 'unable to detect version',
|
info['version'] or 'unable to detect version',
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
if dependency in ('SINGLEFILE_BINARY', 'READABILITY_BINARY', 'MERCURY_BINARY'):
|
if dependency in ('YOUTUBEDL_BINARY', 'CHROME_BINARY', 'SINGLEFILE_BINARY', 'READABILITY_BINARY', 'MERCURY_BINARY'):
|
||||||
hint(('To install all packages automatically run: archivebox setup',
|
hint(('To install all packages automatically run: archivebox setup',
|
||||||
f'or to disable it and silence this warning: archivebox config --set SAVE_{dependency.rsplit("_", 1)[0]}=False',
|
f'or to disable it and silence this warning: archivebox config --set SAVE_{dependency.rsplit("_", 1)[0]}=False',
|
||||||
''), prefix=' ')
|
''), prefix=' ')
|
||||||
|
Reference in New Issue
Block a user