Create a V3 command-line entry point (#446)

Summary:
Due to oclif’s structure, this entry point shares its `commands`
directory with that of the V1 entry point. We’ll therefore add commands
like `start-v3` as we go.

Test Plan:
`yarn backend` works, and `node bin/sourcecredV3.js start` launches the
V1 server.

wchargin-branch: v3-cli
This commit is contained in:
William Chargin 2018-06-29 11:47:24 -07:00 committed by GitHub
parent 3bf496b06f
commit 3835862f82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -59,6 +59,7 @@ module.exports = {
"commands/start": resolveApp("src/v1/cli/commands/start.js"),
apiApp: resolveApp("src/v1/app/apiApp.js"),
sourcecred: resolveApp("src/v1/cli/sourcecred.js"),
sourcecredV3: resolveApp("src/v3/cli/sourcecred.js"),
fetchAndPrintGithubRepo: resolveApp(
"src/v1/plugins/github/bin/fetchAndPrintGithubRepo.js"
),

5
src/v3/cli/sourcecred.js Normal file
View File

@ -0,0 +1,5 @@
// @flow
require("../../tools/entry");
require("@oclif/command")
.run()
.catch(require("@oclif/errors/handle"));