Q5ATH2YFEV7RBNBOMHM2Z5YYOYGGLBBOTU3QEXOGBLUBVDT3Q6PQC
function prettify_terminal_command
set result
set count 1
for arg in $argv
echo $arg
if test $count -gt 1
set count (math $count + 1)
set next $argv[$count]
if test $count -eq 2
set result $result (simple_quote $arg)
end
else # this should always be the base command
set result $arg
end
# echo $arg \\
end
for w in $result
echo $w
end
end
function ebapi_paginate
set results_file (mktemp /tmp/ebapi_paginate.XXXXXX)
ebapi $argv > $results_file
set pagination_object (echo $results_file | jq -c '.pagination')
set continuation_token (echo $pagination_object | jq '.continuation')
rm $results_file
end