continuing refactor
This commit is contained in:
+2
-2
@@ -35,7 +35,7 @@ class Get_File(sh.Cmdlet):
|
||||
usage="@1 | get-file -path ./output",
|
||||
arg=[
|
||||
sh.SharedArgs.QUERY,
|
||||
sh.SharedArgs.STORE,
|
||||
sh.SharedArgs.INSTANCE,
|
||||
sh.SharedArgs.PATH,
|
||||
sh.CmdletArg(
|
||||
"name",
|
||||
@@ -66,7 +66,7 @@ class Get_File(sh.Cmdlet):
|
||||
|
||||
# Extract hash and store from result or args
|
||||
file_hash = query_hash or sh.get_field(result, "hash")
|
||||
store_name = parsed.get("store") or sh.get_field(result, "store")
|
||||
store_name = parsed.get("instance") or sh.get_field(result, "store")
|
||||
output_path = parsed.get("path")
|
||||
output_name = parsed.get("name")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user