update and cleanup repo
This commit is contained in:
@@ -164,7 +164,7 @@ def _summarize_worker_results(results: Sequence[Dict[str, Any]], preview_limit:
|
||||
|
||||
|
||||
class search_file(Cmdlet):
|
||||
"""Class-based search-file cmdlet for searching backends and providers."""
|
||||
"""Class-based search-file cmdlet for searching backends and plugins."""
|
||||
|
||||
def __init__(self) -> None:
|
||||
super().__init__(
|
||||
@@ -187,9 +187,9 @@ class search_file(Cmdlet):
|
||||
),
|
||||
],
|
||||
detail=[
|
||||
"Search across configured store backends or plugin providers.",
|
||||
"Search across configured storage backends or plugins.",
|
||||
"Use -instance to target a specific configured backend/instance by name.",
|
||||
"Use -plugin with -instance to target a named provider config.",
|
||||
"Use -plugin with -instance to target a named plugin config.",
|
||||
"URL search: url:* (any URL) or url:<value> (URL substring)",
|
||||
"Extension search: ext:<value> (e.g., ext:png)",
|
||||
"Hydrus-style extension: system:filetype = png",
|
||||
@@ -1216,7 +1216,7 @@ class search_file(Cmdlet):
|
||||
try:
|
||||
table.set_table_metadata(
|
||||
{
|
||||
"provider": "web",
|
||||
"plugin": "web",
|
||||
"site": site_host,
|
||||
"query": search_query,
|
||||
"filetype": requested_type,
|
||||
@@ -1490,7 +1490,7 @@ class search_file(Cmdlet):
|
||||
|
||||
return 1
|
||||
|
||||
# Align with provider default when user did not set -limit.
|
||||
# Align with plugin default when user did not set -limit.
|
||||
if not limit_set:
|
||||
limit = 50
|
||||
|
||||
@@ -1632,7 +1632,7 @@ class search_file(Cmdlet):
|
||||
if "table" not in item_dict:
|
||||
item_dict["table"] = table_type
|
||||
|
||||
# Ensure provider source is present so downstream cmdlets (select) can resolve provider
|
||||
# Ensure plugin source is present so downstream cmdlets can resolve the owner.
|
||||
if "source" not in item_dict:
|
||||
item_dict["source"] = plugin_name
|
||||
|
||||
|
||||
Reference in New Issue
Block a user