William Chargin 80c3c38282
cli2: add sketch of plugin loading (#1810)
Summary:
This adds a `CliPlugin` interface and a basic implementation for the
GitHub plugin.

Paired with @decentralion.

Test Plan:
Create a new directory `/tmp/test-instance`, with:

```
// sourcecred.json
{"bundledPlugins": ["sourcecred/github"]}

// config/sourcecred/github/config.json
{"repositories": ["sourcecred/example-github"]}
```

Then, run

```
yarn backend &&
(cd /tmp/test-instance && node "$OLDPWD/bin/sc2.js" load)
```

and observe that the new instance has a cache directory containing a
GitHub database.

wchargin-branch: cli2-load
2020-05-28 18:57:27 -07:00
..
2020-05-07 20:25:52 -07:00
2020-05-11 19:02:08 -06:00
2020-05-08 15:31:29 +02:00