Plugin CLI Example

An example CLI that can execute arbitrary executable plugins.

Usage

Setup

Clone this repository. Then:

  1. Move the plugins in the plugins/ directory into the CLI root directory (~/.plugin-cli-example/plugins/).
  2. Build the program
  3. Execute it

Additional plugins can be installed by moving an executable file into ~/.plugin-cli-example/plugins/.

There is a convenience helper in the Makefile to handle all this for you. Simply execute:

make demo