heroku 9.0.0-alpha.0 → 9.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/lib/commands/apps/create.d.ts +28 -0
- package/lib/commands/apps/create.js +194 -0
- package/lib/commands/apps/destroy.d.ts +14 -0
- package/lib/commands/apps/destroy.js +46 -0
- package/lib/commands/apps/errors.d.ts +12 -0
- package/lib/commands/apps/errors.js +119 -0
- package/lib/commands/apps/favorites/add.d.ts +9 -0
- package/lib/commands/apps/favorites/add.js +37 -0
- package/lib/commands/apps/favorites/index.d.ts +9 -0
- package/lib/commands/apps/favorites/index.js +25 -0
- package/lib/commands/apps/favorites/remove.d.ts +9 -0
- package/lib/commands/apps/favorites/remove.js +27 -0
- package/lib/commands/apps/index.d.ts +16 -0
- package/lib/commands/apps/index.js +119 -0
- package/lib/commands/apps/info.d.ts +18 -0
- package/lib/commands/apps/info.js +163 -0
- package/lib/commands/apps/open.d.ts +14 -0
- package/lib/commands/apps/open.js +29 -0
- package/lib/commands/apps/rename.d.ts +15 -0
- package/lib/commands/apps/rename.js +50 -0
- package/lib/commands/apps/stacks/index.d.ts +10 -0
- package/lib/commands/apps/stacks/index.js +43 -0
- package/lib/commands/apps/stacks/set.d.ts +14 -0
- package/lib/commands/apps/stacks/set.js +41 -0
- package/lib/commands/auth/logout.js +1 -0
- package/lib/commands/ci/config/index.d.ts +12 -0
- package/lib/commands/ci/config/index.js +43 -0
- package/lib/commands/ci/config/set.d.ts +2 -2
- package/lib/commands/ci/config/set.js +2 -6
- package/lib/commands/ci/config/unset.d.ts +13 -0
- package/lib/commands/ci/config/unset.js +35 -0
- package/lib/commands/ci/migrate-manifest.d.ts +7 -0
- package/lib/commands/ci/migrate-manifest.js +74 -0
- package/lib/commands/config/set.d.ts +11 -0
- package/lib/commands/config/set.js +59 -0
- package/lib/commands/domains/index.d.ts +1 -1
- package/lib/commands/drains/add.d.ts +11 -0
- package/lib/commands/drains/add.js +22 -0
- package/lib/commands/drains/index.d.ts +10 -0
- package/lib/commands/drains/index.js +49 -0
- package/lib/commands/drains/remove.d.ts +12 -0
- package/lib/commands/drains/remove.js +21 -0
- package/lib/lib/api.d.ts +1 -1
- package/lib/lib/apps/confirm-app.d.ts +1 -0
- package/lib/lib/apps/confirm-app.js +23 -0
- package/lib/lib/apps/error_info.d.ts +7 -0
- package/lib/lib/apps/error_info.js +185 -0
- package/lib/lib/buildpacks/buildpacks.js +3 -4
- package/lib/lib/ci/git.d.ts +7 -1
- package/lib/lib/ci/git.js +44 -1
- package/lib/lib/ci/validate.d.ts +2 -0
- package/lib/lib/ci/validate.js +10 -0
- package/lib/lib/git/git.d.ts +3 -0
- package/lib/lib/git/git.js +19 -0
- package/lib/lib/git/push.d.ts +1 -0
- package/lib/lib/git/push.js +6 -0
- package/lib/lib/types/favorites.d.ts +7 -0
- package/lib/lib/types/favorites.js +2 -0
- package/oclif.manifest.json +708 -1
- package/package.json +15 -11
- package/lib/lib/buildpacks/push.d.ts +0 -0
- package/lib/lib/buildpacks/push.js +0 -4
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateArgvPresent = void 0;
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
const validateArgvPresent = (argv, isUnset = false) => {
|
|
6
|
+
if (argv.length === 0) {
|
|
7
|
+
core_1.ux.error(`Usage: heroku ci:config:${isUnset ? 'unset' : 'set'} KEY1 [KEY2 ...]\nMust specify KEY to ${isUnset ? 'unset' : 'set'}.`, { exit: 1 });
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
exports.validateArgvPresent = validateArgvPresent;
|
package/lib/lib/git/git.d.ts
CHANGED
package/lib/lib/git/git.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const command_1 = require("@heroku-cli/command");
|
|
4
4
|
const cp = require("child_process");
|
|
5
5
|
const core_1 = require("@oclif/core");
|
|
6
|
+
const fs = require("fs");
|
|
6
7
|
const util_1 = require("util");
|
|
7
8
|
const execFile = (0, util_1.promisify)(cp.execFile);
|
|
8
9
|
const debug = require('debug')('git');
|
|
@@ -71,5 +72,23 @@ class Git {
|
|
|
71
72
|
message: message,
|
|
72
73
|
});
|
|
73
74
|
}
|
|
75
|
+
inGitRepo() {
|
|
76
|
+
try {
|
|
77
|
+
fs.lstatSync('.git');
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
catch (error) {
|
|
81
|
+
if (error.code !== 'ENOENT')
|
|
82
|
+
throw error;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
hasGitRemote(remote) {
|
|
86
|
+
return this.remoteUrl(remote)
|
|
87
|
+
.then((remote) => Boolean(remote));
|
|
88
|
+
}
|
|
89
|
+
createRemote(remote, url) {
|
|
90
|
+
return this.hasGitRemote(remote)
|
|
91
|
+
.then(exists => !exists ? this.exec(['remote', 'add', remote, url]) : null);
|
|
92
|
+
}
|
|
74
93
|
}
|
|
75
94
|
exports.default = Git;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function push(remote?: string): string;
|