Cookbooks
Cookbooks teach enwiro what you could be working on. Each cookbook watches some source of work - local git repositories, GitHub issues, an Obsidian vault - and offers what it finds as recipes: names you can activate that become environments on demand. Turning a recipe into an environment is called cooking it. Nearly everything you can activate in enwiro comes from a cookbook.
Available Cookbooks
Section titled “Available Cookbooks”-
git - Turns your local git repositories, their branches, and their worktrees into environments. New branches get their own folder automatically.
-
github - Surfaces open pull requests in your repositories, and issues assigned to you, as
repo#123recipes - each becoming its own environment when you activate it. Requires an authenticatedghCLI. -
chezmoi - Exposes your chezmoi dotfiles source directory as a permanent
chezmoienvironment (it is always there; nothing is created on demand). -
obsidian - Discovers your Obsidian vaults as
obsidian#vault-namerecipes and auto-opens Obsidian on activation.
Installing a Cookbook
Section titled “Installing a Cookbook”Install the cookbook binary with cargo, for example:
cargo install enwiro-cookbook-gitEnwiro discovers every installed enwiro-cookbook-* binary automatically.
The daemon keeps each cookbook’s recipes refreshed in the
background, so recipe listing requires the daemon to be running.
Configuring a Cookbook
Section titled “Configuring a Cookbook”Most cookbooks work out of the box and need no configuration. A few need to be pointed at your data before they can find anything - the git cookbook, for example, needs to know where your repositories live.
When a cookbook does take configuration, it reads its own file at
~/.config/enwiro/cookbook-<name>.toml (for example cookbook-git.toml).
The available keys are listed on each cookbook’s page.
Overlapping Recipes
Section titled “Overlapping Recipes”Several cookbooks can describe the same underlying unit of work - for
example, the github cookbook’s repo#42 and the git cookbook’s
repo@pr-42 both describe working on pull request 42. Enwiro recognises
equivalent recipes and collapses them once an environment exists; see
Different ways to work on the same thing.
Creating Your Own
Section titled “Creating Your Own”A cookbook is a standalone executable that lists recipe names and resolves a chosen one to a directory - a shell script can be enough. See the cookbook authoring guide for the full protocol specification.