Recipes
A recipe solves one everyday task with the official packages, the wefts: a complete program to start from, how to run it, and what it does when things go wrong. The programs are compiled and run by the site’s checks, like those of the tour.
- A command line: options, help, completion and
subcommands, described by a type, with
weft/cli. - Configuration: a program’s settings, merged
from files, the environment and the command line, with
weft/config. - Terminal output: colors, messages, spinners,
progress bars and questions, with
weft/terminal. - JSON and TOML: typed values and documents of
any shape, with
weft/jsonandweft/toml. - An HTTP service: a REST service and its client,
described by a contract, with
weft/rest. - Dependency injection: a program’s parts
assembled from their declarations, checked at compile time, with
weft/inject.
The registry documents each weft’s whole API; a recipe shows the part most programs need.