f
This commit is contained in:
@@ -74,6 +74,16 @@ class Add_Url(sh.Cmdlet):
|
||||
"store") if result is not None else None
|
||||
)
|
||||
url_arg = parsed.get("url")
|
||||
if not url_arg:
|
||||
try:
|
||||
inferred = sh.extract_url_from_result(result)
|
||||
if inferred:
|
||||
candidate = inferred[0]
|
||||
if isinstance(candidate, str) and candidate.strip():
|
||||
url_arg = candidate.strip()
|
||||
parsed["url"] = url_arg
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
# If we have multiple piped items, we will resolve hash/store per item below.
|
||||
if not results:
|
||||
|
||||
Reference in New Issue
Block a user