This is an improved example of usage for hashicorp/plugin
Modifications include:
- injection of zerolog logger into plugin mechanism.
- removal of unnesessary net/rpc
- capturing native stderr logs from Plugins in Main process
- proper logger calls from Plugins into main Process using bidirectional communication
This example builds a simple key/value store CLI where the mechanism for storing and retrieving keys is pluggable.
To build this example:
$ makeTo run this example:
$ make run_put
$ make run_get