Q5ATH2YFEV7RBNBOMHM2Z5YYOYGGLBBOTU3QEXOGBLUBVDT3Q6PQC function prettify_terminal_commandset resultset count 1for arg in $argvecho $argif test $count -gt 1set count (math $count + 1)set next $argv[$count]if test $count -eq 2set result $result (simple_quote $arg)endelse # this should always be the base commandset result $argend# echo $arg \\endfor w in $resultecho $wendend
function ebapi_paginateset results_file (mktemp /tmp/ebapi_paginate.XXXXXX)ebapi $argv > $results_fileset pagination_object (echo $results_file | jq -c '.pagination')set continuation_token (echo $pagination_object | jq '.continuation')rm $results_fileend