micha / resty

Little command line REST client that you can use in pipelines (bash or zsh).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sourcing resty with OPTIONS

josdotso opened this issue · comments

Hi folks.

I see in the docs:

source resty [-W] [remote]              # load functions into shell

But is this also possible?:

source resty [-W] [remote] [OPTIONS]       # load functions into shell

Thanks,
Joshua

@josdotso After verification this is possible.
At the end of the script that load the functions, resty is called with all his arguments:

resty "$@" >/dev/null 2>&1

(shall I close the issue?)