Skip to main content

Module host

Module host 

Source
Expand description

The host trait: what jouet’s PR commands ask of a forge, answered by GitHub, GitLab, Forgejo or Entire in the same model types, so pr status, pr threads and the waits print the same output and exit the same way whichever forge a repository is on.

A forge that has no equivalent of something says so through Host::lacks before anything is sent, and the command exits 4 with that reason rather than approximating it.

Enums§

Feature
What a forge may lack.

Traits§

Host

Functions§

connect
The host a repository is on: github for GitHub, else a new client for its GitLab, Forgejo or Entire host. Err names a host jouet does not know.
fetch
Fetches lookups that may be on several forges: GitHub’s through github, every other host’s through its own client, in the order each host was first named.
with
Runs f with the host repo is on: github for a GitHub repository, else a new client for its forge.