@clickview/ship-it 0.0.20 → 0.0.22
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 +48 -48
- package/config.json +10 -10
- package/lib/config.json +11 -11
- package/lib/src/api-clients/git-lab/GitLabApiClient.js +404 -404
- package/lib/src/api-clients/git-lab/GitLabMapper.js +81 -81
- package/lib/src/api-clients/index.js +18 -18
- package/lib/src/api-clients/team-city/TeamCityApiClient.js +100 -100
- package/lib/src/commands/BumpPackagesCommand.js +84 -84
- package/lib/src/commands/CreateBranchCommand.js +100 -100
- package/lib/src/commands/CreateMergeRequestCommand.js +107 -107
- package/lib/src/commands/CreateReleaseNotesCommand.js +84 -84
- package/lib/src/commands/CreateTestingNotesCommand.js +84 -84
- package/lib/src/commands/InstallPackagesCommand.js +76 -76
- package/lib/src/commands/ListProjectsCommand.js +76 -76
- package/lib/src/commands/ReleaseCommand.js +129 -129
- package/lib/src/commands/StartConsumingProjectBuildsCommand.js +76 -76
- package/lib/src/commands/StatusCommand.js +88 -88
- package/lib/src/commands/TagMasterCommand.js +76 -76
- package/lib/src/commands/ValidateMergeRequestCommand.js +76 -76
- package/lib/src/commands/VersionCommand.js +76 -76
- package/lib/src/commands/index.js +29 -29
- package/lib/src/constants/CommandTypeMapping.js +19 -19
- package/lib/src/constants/GitLabMemberIds.js +6 -6
- package/lib/src/constants/MonorepoPackageJsonFiles.js +16 -16
- package/lib/src/constants/MonorepoProjectNames.js +16 -15
- package/lib/src/constants/ProjectNames.js +64 -62
- package/lib/src/constants/TeamCityBuildIDs.js +16 -15
- package/lib/src/constants/index.js +19 -19
- package/lib/src/errors/ShipItError.js +32 -32
- package/lib/src/errors/index.js +17 -17
- package/lib/src/index.js +18 -18
- package/lib/src/interfaces/Config.js +2 -2
- package/lib/src/interfaces/MergeRequestState.js +2 -2
- package/lib/src/interfaces/ProjectNames.js +2 -2
- package/lib/src/interfaces/ShipItCommand.js +2 -2
- package/lib/src/interfaces/ShipItTask.js +2 -2
- package/lib/src/interfaces/VersionType.js +2 -2
- package/lib/src/interfaces/command-cli-options/MilestoneCommandCliOptions.js +2 -2
- package/lib/src/interfaces/command-cli-options/ReleaseCommandCliOptions.js +2 -2
- package/lib/src/interfaces/command-cli-options/index.js +18 -18
- package/lib/src/interfaces/command-options/BaseCommandOptions.js +2 -2
- package/lib/src/interfaces/command-options/BumpPackagesCommandOptions.js +2 -2
- package/lib/src/interfaces/command-options/DockerMilestoneCommandOptions.js +2 -2
- package/lib/src/interfaces/command-options/MilestoneCommandOptions.js +2 -2
- package/lib/src/interfaces/command-options/ReleaseCommandOptions.js +2 -2
- package/lib/src/interfaces/command-options/ValidateMRCommandOptions.js +2 -2
- package/lib/src/interfaces/command-options/index.js +21 -21
- package/lib/src/interfaces/index.js +26 -26
- package/lib/src/interfaces/models/Branch.js +2 -2
- package/lib/src/interfaces/models/Commit.js +2 -2
- package/lib/src/interfaces/models/CommitFile.js +2 -2
- package/lib/src/interfaces/models/File.js +2 -2
- package/lib/src/interfaces/models/Label.js +2 -2
- package/lib/src/interfaces/models/MergeRequest.js +2 -2
- package/lib/src/interfaces/models/Milestone.js +2 -2
- package/lib/src/interfaces/models/Project.js +2 -2
- package/lib/src/interfaces/models/ProjectConfig.js +9 -9
- package/lib/src/interfaces/models/Release.js +2 -2
- package/lib/src/interfaces/models/Tag.js +2 -2
- package/lib/src/interfaces/models/index.js +26 -26
- package/lib/src/interfaces/view-models/MilestoneProject.js +2 -2
- package/lib/src/interfaces/view-models/index.js +17 -17
- package/lib/src/inversify.config.js +67 -67
- package/lib/src/services/GitLabService.js +498 -498
- package/lib/src/services/TeamCityService.js +37 -37
- package/lib/src/services/index.js +18 -18
- package/lib/src/startup/AddMilestoneCommand.js +95 -95
- package/lib/src/startup/GetAction.js +68 -68
- package/lib/src/startup/SetupCommands.js +128 -128
- package/lib/src/tasks/BumpPackagesTask.js +229 -229
- package/lib/src/tasks/BumpVersionTxtTask.js +110 -110
- package/lib/src/tasks/CommitPackageVersionsTask.js +116 -116
- package/lib/src/tasks/CreateBranchTask.js +104 -104
- package/lib/src/tasks/CreateMergeRequestTask.js +118 -118
- package/lib/src/tasks/CreateReleaseNotesTask.js +122 -122
- package/lib/src/tasks/CreateTestingNotesTask.js +135 -135
- package/lib/src/tasks/InstallPackagesTask.js +405 -405
- package/lib/src/tasks/ListProjectsTask.js +87 -87
- package/lib/src/tasks/StartConsumingProjectBuildsTask.js +149 -149
- package/lib/src/tasks/StartMonorepoBuildTask.js +109 -109
- package/lib/src/tasks/TagMasterTask.js +121 -121
- package/lib/src/tasks/ValidateCommitsTask.js +119 -119
- package/lib/src/tasks/ValidateDescriptionsTask.js +151 -151
- package/lib/src/tasks/ValidateMergeRequestTask.js +115 -115
- package/lib/src/tasks/ValidateTask.js +240 -240
- package/lib/src/tasks/VersionTask.js +98 -98
- package/lib/src/tasks/index.js +33 -33
- package/lib/src/types.js +49 -49
- package/lib/src/utils/BranchNames.js +11 -11
- package/lib/src/utils/Commits.js +55 -55
- package/lib/src/utils/Csv.js +54 -54
- package/lib/src/utils/Descriptions.js +237 -237
- package/lib/src/utils/GroupIds.js +6 -6
- package/lib/src/utils/Logger.js +62 -62
- package/lib/src/utils/ProjectIds.js +47 -47
- package/lib/src/utils/Versions.js +20 -20
- package/lib/src/utils/index.js +22 -22
- package/package.json +47 -47
|
@@ -1,128 +1,128 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.setupCommands = void 0;
|
|
40
|
-
var AddMilestoneCommand_1 = require("./AddMilestoneCommand");
|
|
41
|
-
var GetAction_1 = require("./GetAction");
|
|
42
|
-
function setupCommands(program, container) {
|
|
43
|
-
var _this = this;
|
|
44
|
-
var getAction = (0, GetAction_1.getActionBuilder)(program, container);
|
|
45
|
-
var addMilestoneCommand = (0, AddMilestoneCommand_1.getAddMilestoneCommand)(program, getAction);
|
|
46
|
-
// All commands below accept the same options
|
|
47
|
-
addMilestoneCommand('status', 'Get the status of all MRs in a milestone');
|
|
48
|
-
addMilestoneCommand('version', 'Display the versions that will be used for the release');
|
|
49
|
-
addMilestoneCommand('create-branches', 'Create release branches for all projects that are part of a milestone');
|
|
50
|
-
addMilestoneCommand('create-mrs', 'Create merge requests for all projects that are part of a milestone');
|
|
51
|
-
addMilestoneCommand('create-notes', 'Builds descriptions for all projects that are part of a milestone');
|
|
52
|
-
addMilestoneCommand('create-testing-notes', 'Builds testing notes for all projects that are part of a milestone');
|
|
53
|
-
addMilestoneCommand('tag-master', 'Tags master for all release MRs that are part of a milestone');
|
|
54
|
-
program.command('release')
|
|
55
|
-
.description('Create releases for all projects that are part of a milestone')
|
|
56
|
-
.requiredOption('-m, --milestone <milestone>')
|
|
57
|
-
.option('-p, --projectIds <projectIds...>')
|
|
58
|
-
.option('-o, --omit <omittedProjectIds...>')
|
|
59
|
-
.option('--hotfix')
|
|
60
|
-
.option('--major')
|
|
61
|
-
.option('--trigger-monorepo-build')
|
|
62
|
-
.action(function (opts) { return __awaiter(_this, void 0, void 0, function () {
|
|
63
|
-
var options;
|
|
64
|
-
return __generator(this, function (_a) {
|
|
65
|
-
switch (_a.label) {
|
|
66
|
-
case 0:
|
|
67
|
-
options = (0, AddMilestoneCommand_1.processMilestoneCommandOptions)(opts);
|
|
68
|
-
return [4 /*yield*/, getAction('release')(options)];
|
|
69
|
-
case 1:
|
|
70
|
-
_a.sent();
|
|
71
|
-
return [2 /*return*/];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
}); });
|
|
75
|
-
program.command('bump-packages')
|
|
76
|
-
.description('Bump clickview npm package versions in monorepo to their next version')
|
|
77
|
-
.requiredOption('-b, --branchName <branchName>')
|
|
78
|
-
.option('-p, --preId <preId>')
|
|
79
|
-
.action(getAction('bump-packages'));
|
|
80
|
-
program.command('install-packages')
|
|
81
|
-
.description('Install the latest clickview npm packages in all consuming projects that are part of a milestone')
|
|
82
|
-
.option('-m, --milestone <milestone>')
|
|
83
|
-
.option('-b, --monorepoBranchName <monorepoBranchName>')
|
|
84
|
-
.option('-p, --projectIds <projectIds...>')
|
|
85
|
-
.option('-o, --omit <omittedProjectIds...>')
|
|
86
|
-
.option('-t, --targetBranchName <targetBranchName>')
|
|
87
|
-
.action(function (opts) { return __awaiter(_this, void 0, void 0, function () {
|
|
88
|
-
var options;
|
|
89
|
-
return __generator(this, function (_a) {
|
|
90
|
-
switch (_a.label) {
|
|
91
|
-
case 0:
|
|
92
|
-
options = (0, AddMilestoneCommand_1.processMilestoneCommandOptions)(opts);
|
|
93
|
-
return [4 /*yield*/, getAction('install-packages')(options)];
|
|
94
|
-
case 1:
|
|
95
|
-
_a.sent();
|
|
96
|
-
return [2 /*return*/];
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
}); });
|
|
100
|
-
program.command('validate-mr')
|
|
101
|
-
.description('Validate a merge request in a single project, ensuring it has a milestone and valid description')
|
|
102
|
-
.option('-p, --projectId <projectId>')
|
|
103
|
-
.option('-b, --branchName <branchName>')
|
|
104
|
-
.action(getAction('validate-mr'));
|
|
105
|
-
program.command('start-consuming-project-builds')
|
|
106
|
-
.description('Trigger TeamCity builds in all consuming projects that are a part of a milestone')
|
|
107
|
-
.option('-m, --milestone <milestone>')
|
|
108
|
-
.option('--monorepoBranchName <monorepoBranchName>')
|
|
109
|
-
.option('-p, --projectIds <projectIds...>')
|
|
110
|
-
.option('-o, --omit <omittedProjectIds...>')
|
|
111
|
-
.action(function (opts) { return __awaiter(_this, void 0, void 0, function () {
|
|
112
|
-
var options;
|
|
113
|
-
return __generator(this, function (_a) {
|
|
114
|
-
switch (_a.label) {
|
|
115
|
-
case 0:
|
|
116
|
-
options = (0, AddMilestoneCommand_1.processMilestoneCommandOptions)(opts);
|
|
117
|
-
return [4 /*yield*/, getAction('start-consuming-project-builds')(options)];
|
|
118
|
-
case 1:
|
|
119
|
-
_a.sent();
|
|
120
|
-
return [2 /*return*/];
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
}); });
|
|
124
|
-
program.command('list-projects')
|
|
125
|
-
.description('Displays a list of all project names that can be used with the -p argument')
|
|
126
|
-
.action(getAction('list-projects'));
|
|
127
|
-
}
|
|
128
|
-
exports.setupCommands = setupCommands;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (_) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.setupCommands = void 0;
|
|
40
|
+
var AddMilestoneCommand_1 = require("./AddMilestoneCommand");
|
|
41
|
+
var GetAction_1 = require("./GetAction");
|
|
42
|
+
function setupCommands(program, container) {
|
|
43
|
+
var _this = this;
|
|
44
|
+
var getAction = (0, GetAction_1.getActionBuilder)(program, container);
|
|
45
|
+
var addMilestoneCommand = (0, AddMilestoneCommand_1.getAddMilestoneCommand)(program, getAction);
|
|
46
|
+
// All commands below accept the same options
|
|
47
|
+
addMilestoneCommand('status', 'Get the status of all MRs in a milestone');
|
|
48
|
+
addMilestoneCommand('version', 'Display the versions that will be used for the release');
|
|
49
|
+
addMilestoneCommand('create-branches', 'Create release branches for all projects that are part of a milestone');
|
|
50
|
+
addMilestoneCommand('create-mrs', 'Create merge requests for all projects that are part of a milestone');
|
|
51
|
+
addMilestoneCommand('create-notes', 'Builds descriptions for all projects that are part of a milestone');
|
|
52
|
+
addMilestoneCommand('create-testing-notes', 'Builds testing notes for all projects that are part of a milestone');
|
|
53
|
+
addMilestoneCommand('tag-master', 'Tags master for all release MRs that are part of a milestone');
|
|
54
|
+
program.command('release')
|
|
55
|
+
.description('Create releases for all projects that are part of a milestone')
|
|
56
|
+
.requiredOption('-m, --milestone <milestone>')
|
|
57
|
+
.option('-p, --projectIds <projectIds...>')
|
|
58
|
+
.option('-o, --omit <omittedProjectIds...>')
|
|
59
|
+
.option('--hotfix')
|
|
60
|
+
.option('--major')
|
|
61
|
+
.option('--trigger-monorepo-build')
|
|
62
|
+
.action(function (opts) { return __awaiter(_this, void 0, void 0, function () {
|
|
63
|
+
var options;
|
|
64
|
+
return __generator(this, function (_a) {
|
|
65
|
+
switch (_a.label) {
|
|
66
|
+
case 0:
|
|
67
|
+
options = (0, AddMilestoneCommand_1.processMilestoneCommandOptions)(opts);
|
|
68
|
+
return [4 /*yield*/, getAction('release')(options)];
|
|
69
|
+
case 1:
|
|
70
|
+
_a.sent();
|
|
71
|
+
return [2 /*return*/];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}); });
|
|
75
|
+
program.command('bump-packages')
|
|
76
|
+
.description('Bump clickview npm package versions in monorepo to their next version')
|
|
77
|
+
.requiredOption('-b, --branchName <branchName>')
|
|
78
|
+
.option('-p, --preId <preId>')
|
|
79
|
+
.action(getAction('bump-packages'));
|
|
80
|
+
program.command('install-packages')
|
|
81
|
+
.description('Install the latest clickview npm packages in all consuming projects that are part of a milestone')
|
|
82
|
+
.option('-m, --milestone <milestone>')
|
|
83
|
+
.option('-b, --monorepoBranchName <monorepoBranchName>')
|
|
84
|
+
.option('-p, --projectIds <projectIds...>')
|
|
85
|
+
.option('-o, --omit <omittedProjectIds...>')
|
|
86
|
+
.option('-t, --targetBranchName <targetBranchName>')
|
|
87
|
+
.action(function (opts) { return __awaiter(_this, void 0, void 0, function () {
|
|
88
|
+
var options;
|
|
89
|
+
return __generator(this, function (_a) {
|
|
90
|
+
switch (_a.label) {
|
|
91
|
+
case 0:
|
|
92
|
+
options = (0, AddMilestoneCommand_1.processMilestoneCommandOptions)(opts);
|
|
93
|
+
return [4 /*yield*/, getAction('install-packages')(options)];
|
|
94
|
+
case 1:
|
|
95
|
+
_a.sent();
|
|
96
|
+
return [2 /*return*/];
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
}); });
|
|
100
|
+
program.command('validate-mr')
|
|
101
|
+
.description('Validate a merge request in a single project, ensuring it has a milestone and valid description')
|
|
102
|
+
.option('-p, --projectId <projectId>')
|
|
103
|
+
.option('-b, --branchName <branchName>')
|
|
104
|
+
.action(getAction('validate-mr'));
|
|
105
|
+
program.command('start-consuming-project-builds')
|
|
106
|
+
.description('Trigger TeamCity builds in all consuming projects that are a part of a milestone')
|
|
107
|
+
.option('-m, --milestone <milestone>')
|
|
108
|
+
.option('--monorepoBranchName <monorepoBranchName>')
|
|
109
|
+
.option('-p, --projectIds <projectIds...>')
|
|
110
|
+
.option('-o, --omit <omittedProjectIds...>')
|
|
111
|
+
.action(function (opts) { return __awaiter(_this, void 0, void 0, function () {
|
|
112
|
+
var options;
|
|
113
|
+
return __generator(this, function (_a) {
|
|
114
|
+
switch (_a.label) {
|
|
115
|
+
case 0:
|
|
116
|
+
options = (0, AddMilestoneCommand_1.processMilestoneCommandOptions)(opts);
|
|
117
|
+
return [4 /*yield*/, getAction('start-consuming-project-builds')(options)];
|
|
118
|
+
case 1:
|
|
119
|
+
_a.sent();
|
|
120
|
+
return [2 /*return*/];
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
}); });
|
|
124
|
+
program.command('list-projects')
|
|
125
|
+
.description('Displays a list of all project names that can be used with the -p argument')
|
|
126
|
+
.action(getAction('list-projects'));
|
|
127
|
+
}
|
|
128
|
+
exports.setupCommands = setupCommands;
|