-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explain how to assign the response to a variable #55
Conversation
@micha rebased and ready for review |
Hello @amitaibu. |
@AdrieanKhisbe sorry, didn't understand your comment. |
@@ -366,6 +366,8 @@ Since resty creates the REST verb functions in the shell, when using it from a s | |||
|
|||
Here the `-W` option was used when loading the script to prevent writing to the history file and an initial URI base was set at the same time. Then a JSON file was fetched, edited using [jsawk](http://github.com/micha/jsawk), and re-uploaded to the server. | |||
|
|||
To assign the response of resty to a variable you can you do for example: `VAR="$(GET /some/request)`. Note that the quote symbol (`"`) around the subcommand is necessary if the output contains spaces. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is a missing quote:
should be VAR="$(GET /some/request)"
Pushed a fix. |
can you squash your commit with a intreactive rebase |
sure - wasn't sure you wanted it squashed. sec :) |
Ready for review :) Do I get bonus points for doing this, eventough I don't actually use resty? 😉 |
Just cherry picked your commit. :) |
#54