az: echo commands, pass extra args to command
1 files changed, 9 insertions(+), 3 deletions(-)

M bin/az
M bin/az +9 -3
@@ 35,12 35,18 @@ case "$cmd" in
             type: type, description: description}' "$@"
     ;;
     computes|computers)
-        az ml compute list --type amlcompute
-        az ml compute list --type computeinstance
+        shift
+        echo az ml compute list --type amlcompute "$@"
+        echo az ml compute list --type computeinstance "$@"
+        # echo az ml compute list --type kubernetes
+        az ml compute list --type amlcompute "$@"
+        az ml compute list --type computeinstance "$@"
         # az ml compute list --type kubernetes
     ;;
     computesizes|sizes)
-        az ml compute list-sizes --query 'value[].{name: name, vCpUs: vCpUs, memoryGb: join(``, [to_string(@.memoryGb), `" GB"`])}'
+        shift
+        echo az ml compute list-sizes --query 'value[].{name: name, vCpUs: vCpUs, memoryGb: join(``, [to_string(@.memoryGb), `" GB"`])}' "$@"
+        az ml compute list-sizes --query 'value[].{name: name, vCpUs: vCpUs, memoryGb: join(``, [to_string(@.memoryGb), `" GB"`])}' "$@"
     ;;
     help)
         echo jobs: all jobs of any type