Expand description
What diffr gives every plugin: git, the host interface of
wit/plugin.wit. A plugin calls it the same way wherever it runs. In a
component it calls the import. Natively, diffr runs each call of a plugin
inside scope, with its own implementation of Host, and the
function calls that.
Everything else a plugin needs it does itself: it reads files, and writes to stderr, which diffr captures and writes to its own.
Traits§
- Host
- diffr’s implementation of the host functions for one call of a native plugin.