k
This commit is contained in:
@@ -555,34 +555,7 @@ class search_file(Cmdlet):
|
||||
worker_id = str(uuid.uuid4())
|
||||
library_root = get_local_storage_path(config or {})
|
||||
if not library_root:
|
||||
log("No library root configured", file=sys.stderr)
|
||||
log("", file=sys.stderr)
|
||||
|
||||
# Show config panel for FolderStore
|
||||
try:
|
||||
from SYS.rich_display import show_store_config_panel
|
||||
show_store_config_panel("folder", ["NAME", "PATH"])
|
||||
log("", file=sys.stderr)
|
||||
except Exception:
|
||||
log("Example config for FolderStore:", file=sys.stderr)
|
||||
log("[store=folder]", file=sys.stderr)
|
||||
log('NAME="default"', file=sys.stderr)
|
||||
log('PATH="/path/to/library"', file=sys.stderr)
|
||||
log("", file=sys.stderr)
|
||||
|
||||
# Show config panel for HydrusNetworkStore
|
||||
try:
|
||||
from SYS.rich_display import show_store_config_panel
|
||||
show_store_config_panel("hydrusnetwork", ["NAME", "API", "URL"])
|
||||
log("", file=sys.stderr)
|
||||
except Exception:
|
||||
log("Example config for HydrusNetworkStore:", file=sys.stderr)
|
||||
log("[store=hydrusnetwork]", file=sys.stderr)
|
||||
log('NAME="default"', file=sys.stderr)
|
||||
log('API="your-api-key"', file=sys.stderr)
|
||||
log('URL="http://localhost:45869"', file=sys.stderr)
|
||||
log("", file=sys.stderr)
|
||||
|
||||
log("No library root configured. Use the .config command to set up storage.", file=sys.stderr)
|
||||
return 1
|
||||
|
||||
# Use context manager to ensure database is always closed
|
||||
|
||||
Reference in New Issue
Block a user