{"size": 642, "ext": "scrbl", "max_stars_repo_path": "scribblings/use.scrbl", "max_stars_repo_name": "jessealama/riposte", "max_stars_repo_stars_event_min_datetime": "2018-11-08T19:12:04.000Z", "max_stars_repo_stars_event_max_datetime": "2021-06-11T16:09:15.000Z", "max_issues_repo_path": "scribblings/use.scrbl", "max_issues_repo_name": "jessealama/riposte", "max_issues_repo_issues_event_min_datetime": "2018-10-25T08:57:28.000Z", "max_issues_repo_issues_event_max_datetime": "2021-10-12T12:38:06.000Z", "max_forks_repo_path": "scribblings/use.scrbl", "max_forks_repo_name": "jessealama/riposte", "max_forks_repo_forks_event_min_datetime": "2018-11-15T08:33:59.000Z", "max_forks_repo_forks_event_max_datetime": "2021-02-05T21:07:15.000Z"}
{"max_stars_count": 37, "max_issues_count": 12, "max_forks_count": 5, "avg_line_length": 20.0625, "max_line_length": 175, "alphanum_fraction": 0.7258566978}
#lang scribble/manual

@title{Usage}

There are two ways of executing a Riposte script: using @tt{riposte} or directly executing them.

@section{Using the interpreter}

Do this:

@verbatim[]|{
$ riposte path/to/script.rip
}|

@section{Direct execution}

Use a shebang. Start your Riposte script, say @tt{let-er.rip}, like this:

@verbatim[]|{
#!/usr/local/bin/riposte
#
GET whatever responds with 2XX
}|

Make sure your Riposte script is executable. Then—assuming that Riposte really is at @tt{/usr/local/bin/riposte}, as indicated in the script—you ought to be able to just to do

@verbatim[]|{
$ ./let-er.rip
}|

to @tt{GET} @tt{whatever}.
