@heroku-cli/command
Version:
base class for Heroku CLI commands
49 lines (48 loc) • 1.11 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.deps = void 0;
const oclif = require("@oclif/core");
const { ux } = oclif;
exports.deps = {
get APIClient() {
return fetch('./api-client').APIClient;
},
get Git() {
return fetch('./git').Git;
},
get HTTP() {
return fetch('@heroku/http-call');
},
// local
get Mutex() {
return fetch('./mutex').Mutex;
},
get ParticleboardClient() {
return fetch('./particleboard-client').ParticleboardClient;
},
// remote
get cli() {
return fetch('@oclif/core').ux;
},
get file() {
return fetch('./file');
},
get flags() {
return fetch('./flags');
},
get netrc() {
return fetch('netrc-parser').default;
},
get yubikey() {
return fetch('./yubikey').yubikey;
},
};
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const cache = {};
function fetch(s) {
if (!cache[s]) {
cache[s] = require(s);
}
return cache[s];
}
exports.default = exports.deps;