9.0.0.2
10 Racket API
The following documents how to use Req facilities in pure Racket code.
10.1 Running Req from Racket
| (require req/req) | package: req-lib |
Executes the specified Req action.
Available actions are described in the Req command-line interface documentation.
req-hash is a object produced by the req-file->hash function.
action is a symbol name of the action, like the long action flag name.
action-argument is a optional string that a specified action accepts.
parameter
(req-local-chain? boolean) → void? boolean : boolean?
= #true
Toggles if when a singular local package installation is specified
(--l flag),
its dependencies will be checked whether each of required
local packages is installed.
parameter
(req-reinstall-local? boolean) → void? boolean : boolean?
= #false
Toggles whether any
local packages
that are already installed when they are requested for installation
will be reinstalled (first removed and then installed again).
10.2 Parsing Req files
| (require req/util/req-file-util) | package: req-lib |
procedure
(req-file->hash a-req-file-path [ a-project-root-path]) → hash? a-req-file-path : path-string? a-project-root-path : path-string? = #false
If the a-project-root-path is #false or not given it is derived from a-req-file-path file directory.
10.3 Req Version
| (require req/version) | package: req-lib |
Currently it is equal to "5.5.1".
value
Currently it is equal to 5.
value
Currently it is equal to 5.
value
Currently it is equal to 1.