From 1f4a6395c8bc85c798eaa820907e31238b411d1e Mon Sep 17 00:00:00 2001 From: William Chargin Date: Sun, 2 Sep 2018 15:44:30 -0700 Subject: [PATCH] cli: rename existing system from `cli` to `oclif` (#739) Summary: Per #580, we aim to remove OClif. To do so, we move the old system to a directory `oclif`, and will create the new system in the now-vacant `cli` directory. Test Plan: Note that `yarn backend` still builds, that `node bin/sourcecred.js` still has `help` and `load`, and that `git grep -wc cli` yields only `yarn.lock:9`. wchargin-branch: rename-cli-to-oclif --- config/paths.js | 4 ++-- src/app/credExplorer/repoRegistry.js | 2 +- src/{cli => oclif}/commands/load.js | 0 src/{cli => oclif}/common.js | 0 src/{cli => oclif}/sourcecred.js | 0 5 files changed, 3 insertions(+), 3 deletions(-) rename src/{cli => oclif}/commands/load.js (100%) rename src/{cli => oclif}/common.js (100%) rename src/{cli => oclif}/sourcecred.js (100%) diff --git a/config/paths.js b/config/paths.js index 3e0045e..ab925d5 100644 --- a/config/paths.js +++ b/config/paths.js @@ -27,8 +27,8 @@ module.exports = { // source file, and the key will be the filename of the bundled entry // point within the build directory. backendEntryPoints: { - sourcecred: resolveApp("src/cli/sourcecred.js"), - "commands/load": resolveApp("src/cli/commands/load.js"), + sourcecred: resolveApp("src/oclif/sourcecred.js"), + "commands/load": resolveApp("src/oclif/commands/load.js"), // fetchAndPrintGithubRepo: resolveApp( "src/plugins/github/bin/fetchAndPrintGithubRepo.js" diff --git a/src/app/credExplorer/repoRegistry.js b/src/app/credExplorer/repoRegistry.js index 94e6b9e..651a912 100644 --- a/src/app/credExplorer/repoRegistry.js +++ b/src/app/credExplorer/repoRegistry.js @@ -1,7 +1,7 @@ // @flow // The repoRegistry is written by the CLI load command -// (src/cli/commands/load.js) and is read by the RepositorySelect component +// (src/oclif/commands/load.js) and is read by the RepositorySelect component // (src/app/credExplorer/RepositorySelect.js) import deepEqual from "lodash.isequal"; import {toCompat, fromCompat, type Compatible} from "../../util/compat"; diff --git a/src/cli/commands/load.js b/src/oclif/commands/load.js similarity index 100% rename from src/cli/commands/load.js rename to src/oclif/commands/load.js diff --git a/src/cli/common.js b/src/oclif/common.js similarity index 100% rename from src/cli/common.js rename to src/oclif/common.js diff --git a/src/cli/sourcecred.js b/src/oclif/sourcecred.js similarity index 100% rename from src/cli/sourcecred.js rename to src/oclif/sourcecred.js