added mhtml support and fixed some bugs in the process
This commit is contained in:
@@ -122,6 +122,9 @@ def _normalize_arg(arg: Any) -> Dict[str, Any]:
|
||||
"choices": arg.get("choices", []) or [],
|
||||
"alias": arg.get("alias", ""),
|
||||
"variadic": arg.get("variadic", False),
|
||||
"query_key": arg.get("query_key", None),
|
||||
"query_aliases": arg.get("query_aliases", []) or [],
|
||||
"query_only": bool(arg.get("query_only", False)),
|
||||
"requires_db": bool(arg.get("requires_db", False)),
|
||||
}
|
||||
|
||||
@@ -134,6 +137,9 @@ def _normalize_arg(arg: Any) -> Dict[str, Any]:
|
||||
"choices": getattr(arg, "choices", []) or [],
|
||||
"alias": getattr(arg, "alias", ""),
|
||||
"variadic": getattr(arg, "variadic", False),
|
||||
"query_key": getattr(arg, "query_key", None),
|
||||
"query_aliases": getattr(arg, "query_aliases", []) or [],
|
||||
"query_only": bool(getattr(arg, "query_only", False)),
|
||||
"requires_db": bool(getattr(arg, "requires_db", False)),
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -1983,6 +1983,8 @@ class PipelineExecutor:
|
||||
command_expanded = False
|
||||
example_selector_triggered = False
|
||||
normalized_source_cmd = str(source_cmd or "").replace("_", "-").strip().lower()
|
||||
prefer_row_action = False
|
||||
preferred_row_action = None
|
||||
|
||||
if normalized_source_cmd in HELP_EXAMPLE_SOURCE_COMMANDS and selection_indices:
|
||||
try:
|
||||
@@ -2011,8 +2013,6 @@ class PipelineExecutor:
|
||||
else:
|
||||
selected_row_args: List[str] = []
|
||||
skip_pipe_expansion = source_cmd in {".pipe", ".mpv"} and len(stages) > 0
|
||||
prefer_row_action = False
|
||||
preferred_row_action = None
|
||||
if len(selection_indices) == 1 and not stages:
|
||||
try:
|
||||
row_action = _get_row_action(selection_indices[0])
|
||||
|
||||
Reference in New Issue
Block a user