@capraconsulting/cals-cli 3.2.10 → 3.3.0
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/lib/cals-cli.js +14 -8
- package/lib/cals-cli.js.map +1 -1
- package/lib/index.es.js +10 -1
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +10 -1
- package/lib/index.js.map +1 -1
- package/lib/load-secrets/types.d.ts +8 -1
- package/package.json +15 -15
package/lib/cals-cli.js
CHANGED
|
@@ -68,7 +68,7 @@ var read__default = /*#__PURE__*/_interopDefaultLegacy(read);
|
|
|
68
68
|
var findUp__default = /*#__PURE__*/_interopDefaultLegacy(findUp);
|
|
69
69
|
var execa__default = /*#__PURE__*/_interopDefaultLegacy(execa);
|
|
70
70
|
|
|
71
|
-
var version = "3.
|
|
71
|
+
var version = "3.3.0";
|
|
72
72
|
var engines = {
|
|
73
73
|
node: ">=12.0.0"
|
|
74
74
|
};
|
|
@@ -2103,7 +2103,8 @@ async function executeChangeSetItem(github, changeItem, reporter, lookup) {
|
|
|
2103
2103
|
case "team-remove":
|
|
2104
2104
|
await github.octokit.teams.deleteInOrg({
|
|
2105
2105
|
org: changeItem.org,
|
|
2106
|
-
team_slug: (await lookup.getOrgTeam(changeItem.org, changeItem.team))
|
|
2106
|
+
team_slug: (await lookup.getOrgTeam(changeItem.org, changeItem.team))
|
|
2107
|
+
.slug,
|
|
2107
2108
|
});
|
|
2108
2109
|
return true;
|
|
2109
2110
|
case "team-add":
|
|
@@ -2116,7 +2117,8 @@ async function executeChangeSetItem(github, changeItem, reporter, lookup) {
|
|
|
2116
2117
|
case "team-member-permission":
|
|
2117
2118
|
await github.octokit.teams.addOrUpdateMembershipForUserInOrg({
|
|
2118
2119
|
org: changeItem.org,
|
|
2119
|
-
team_slug: (await lookup.getOrgTeam(changeItem.org, changeItem.team))
|
|
2120
|
+
team_slug: (await lookup.getOrgTeam(changeItem.org, changeItem.team))
|
|
2121
|
+
.slug,
|
|
2120
2122
|
username: changeItem.user,
|
|
2121
2123
|
role: changeItem.role,
|
|
2122
2124
|
});
|
|
@@ -2124,14 +2126,16 @@ async function executeChangeSetItem(github, changeItem, reporter, lookup) {
|
|
|
2124
2126
|
case "team-member-remove":
|
|
2125
2127
|
await github.octokit.teams.removeMembershipForUserInOrg({
|
|
2126
2128
|
org: changeItem.org,
|
|
2127
|
-
team_slug: (await lookup.getOrgTeam(changeItem.org, changeItem.team))
|
|
2129
|
+
team_slug: (await lookup.getOrgTeam(changeItem.org, changeItem.team))
|
|
2130
|
+
.slug,
|
|
2128
2131
|
username: changeItem.user,
|
|
2129
2132
|
});
|
|
2130
2133
|
return true;
|
|
2131
2134
|
case "team-member-add":
|
|
2132
2135
|
await github.octokit.teams.addOrUpdateMembershipForUserInOrg({
|
|
2133
2136
|
org: changeItem.org,
|
|
2134
|
-
team_slug: (await lookup.getOrgTeam(changeItem.org, changeItem.team))
|
|
2137
|
+
team_slug: (await lookup.getOrgTeam(changeItem.org, changeItem.team))
|
|
2138
|
+
.slug,
|
|
2135
2139
|
username: changeItem.user,
|
|
2136
2140
|
});
|
|
2137
2141
|
return true;
|
|
@@ -2161,7 +2165,8 @@ async function executeChangeSetItem(github, changeItem, reporter, lookup) {
|
|
|
2161
2165
|
org: changeItem.org,
|
|
2162
2166
|
owner: changeItem.org,
|
|
2163
2167
|
repo: changeItem.repo,
|
|
2164
|
-
team_slug: (await lookup.getOrgTeam(changeItem.org, changeItem.team))
|
|
2168
|
+
team_slug: (await lookup.getOrgTeam(changeItem.org, changeItem.team))
|
|
2169
|
+
.slug,
|
|
2165
2170
|
});
|
|
2166
2171
|
return true;
|
|
2167
2172
|
case "repo-team-add":
|
|
@@ -2170,7 +2175,8 @@ async function executeChangeSetItem(github, changeItem, reporter, lookup) {
|
|
|
2170
2175
|
org: changeItem.org,
|
|
2171
2176
|
owner: changeItem.org,
|
|
2172
2177
|
repo: changeItem.repo,
|
|
2173
|
-
team_slug: (await lookup.getOrgTeam(changeItem.org, changeItem.team))
|
|
2178
|
+
team_slug: (await lookup.getOrgTeam(changeItem.org, changeItem.team))
|
|
2179
|
+
.slug,
|
|
2174
2180
|
permission: changeItem.permission,
|
|
2175
2181
|
});
|
|
2176
2182
|
return true;
|
|
@@ -3411,7 +3417,7 @@ async function main() {
|
|
|
3411
3417
|
/ /___/ ___ |/ /______/ /
|
|
3412
3418
|
\\____/_/ |_/_____/____/
|
|
3413
3419
|
cli ${version}
|
|
3414
|
-
built ${"2023-11-
|
|
3420
|
+
built ${"2023-11-24T13:48:55+0000"}
|
|
3415
3421
|
|
|
3416
3422
|
https://github.com/capralifecycle/cals-cli/
|
|
3417
3423
|
|
package/lib/cals-cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cals-cli.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cals-cli.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/index.es.js
CHANGED
|
@@ -23,7 +23,7 @@ import { strict } from 'assert';
|
|
|
23
23
|
import execa from 'execa';
|
|
24
24
|
import { Transform } from 'stream';
|
|
25
25
|
|
|
26
|
-
var version = "3.
|
|
26
|
+
var version = "3.3.0";
|
|
27
27
|
|
|
28
28
|
class CacheProvider {
|
|
29
29
|
constructor(config) {
|
|
@@ -1193,6 +1193,12 @@ class LoadSecrets {
|
|
|
1193
1193
|
throw e;
|
|
1194
1194
|
}
|
|
1195
1195
|
}
|
|
1196
|
+
async handleStringUpdate() {
|
|
1197
|
+
return await this.getInput({
|
|
1198
|
+
prompt: "Enter value (Ctrl+C to abort): ",
|
|
1199
|
+
silent: this.silent,
|
|
1200
|
+
});
|
|
1201
|
+
}
|
|
1196
1202
|
async handleJsonUpdate(secret) {
|
|
1197
1203
|
this.reporter.log("The secret is of type JSON with these expected fields:");
|
|
1198
1204
|
for (const field of secret.fields) {
|
|
@@ -1283,6 +1289,9 @@ class LoadSecrets {
|
|
|
1283
1289
|
throw e;
|
|
1284
1290
|
}
|
|
1285
1291
|
}
|
|
1292
|
+
else if (secret.type === "string") {
|
|
1293
|
+
secretValue = await this.handleStringUpdate();
|
|
1294
|
+
}
|
|
1286
1295
|
else {
|
|
1287
1296
|
throw new Error(`Unsupported type`);
|
|
1288
1297
|
}
|
package/lib/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/index.js
CHANGED
|
@@ -64,7 +64,7 @@ var process__namespace = /*#__PURE__*/_interopNamespace(process$1);
|
|
|
64
64
|
var read__default = /*#__PURE__*/_interopDefaultLegacy(read);
|
|
65
65
|
var execa__default = /*#__PURE__*/_interopDefaultLegacy(execa);
|
|
66
66
|
|
|
67
|
-
var version = "3.
|
|
67
|
+
var version = "3.3.0";
|
|
68
68
|
|
|
69
69
|
class CacheProvider {
|
|
70
70
|
constructor(config) {
|
|
@@ -1234,6 +1234,12 @@ class LoadSecrets {
|
|
|
1234
1234
|
throw e;
|
|
1235
1235
|
}
|
|
1236
1236
|
}
|
|
1237
|
+
async handleStringUpdate() {
|
|
1238
|
+
return await this.getInput({
|
|
1239
|
+
prompt: "Enter value (Ctrl+C to abort): ",
|
|
1240
|
+
silent: this.silent,
|
|
1241
|
+
});
|
|
1242
|
+
}
|
|
1237
1243
|
async handleJsonUpdate(secret) {
|
|
1238
1244
|
this.reporter.log("The secret is of type JSON with these expected fields:");
|
|
1239
1245
|
for (const field of secret.fields) {
|
|
@@ -1324,6 +1330,9 @@ class LoadSecrets {
|
|
|
1324
1330
|
throw e;
|
|
1325
1331
|
}
|
|
1326
1332
|
}
|
|
1333
|
+
else if (secret.type === "string") {
|
|
1334
|
+
secretValue = await this.handleStringUpdate();
|
|
1335
|
+
}
|
|
1327
1336
|
else {
|
|
1328
1337
|
throw new Error(`Unsupported type`);
|
|
1329
1338
|
}
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -8,11 +8,18 @@ export interface JsonSecretDescribedField {
|
|
|
8
8
|
description?: string;
|
|
9
9
|
example?: string;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Used for secrets that are a single plaintext string,
|
|
13
|
+
* and do not require JSON formating.
|
|
14
|
+
*/
|
|
15
|
+
export interface StringSecret extends BaseSecret {
|
|
16
|
+
type: "string";
|
|
17
|
+
}
|
|
11
18
|
export interface JsonSecret extends BaseSecret {
|
|
12
19
|
type: "json";
|
|
13
20
|
fields: (JsonSecretSimpleField | JsonSecretDescribedField)[];
|
|
14
21
|
}
|
|
15
|
-
export type Secret = JsonSecret;
|
|
22
|
+
export type Secret = JsonSecret | StringSecret;
|
|
16
23
|
export interface SecretGroup {
|
|
17
24
|
accountId: string;
|
|
18
25
|
region: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capraconsulting/cals-cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "CLI for repeatable tasks in CALS",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepare": "node scripts/create-definition-schema.js && husky install",
|
|
@@ -42,32 +42,32 @@
|
|
|
42
42
|
"yargs": "^17.5.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@commitlint/cli": "
|
|
46
|
-
"@commitlint/config-conventional": "
|
|
45
|
+
"@commitlint/cli": "18.4.2",
|
|
46
|
+
"@commitlint/config-conventional": "18.4.2",
|
|
47
47
|
"@octokit/types": "10.0.0",
|
|
48
48
|
"@rollup/plugin-alias": "5.0.1",
|
|
49
49
|
"@rollup/plugin-json": "6.0.1",
|
|
50
50
|
"@rollup/plugin-replace": "5.0.5",
|
|
51
|
-
"@types/jest": "29.5.
|
|
52
|
-
"@types/js-yaml": "4.0.
|
|
53
|
-
"@types/lodash": "4.14.
|
|
54
|
-
"@types/node": "18.18.
|
|
55
|
-
"@types/node-fetch": "2.6.
|
|
56
|
-
"@types/read": "0.0.
|
|
51
|
+
"@types/jest": "29.5.8",
|
|
52
|
+
"@types/js-yaml": "4.0.9",
|
|
53
|
+
"@types/lodash": "4.14.201",
|
|
54
|
+
"@types/node": "18.18.9",
|
|
55
|
+
"@types/node-fetch": "2.6.9",
|
|
56
|
+
"@types/read": "0.0.32",
|
|
57
57
|
"@types/rimraf": "3.0.2",
|
|
58
|
-
"@types/semver": "7.5.
|
|
59
|
-
"@types/sprintf-js": "1.1.
|
|
60
|
-
"@types/yargs": "17.0.
|
|
58
|
+
"@types/semver": "7.5.5",
|
|
59
|
+
"@types/sprintf-js": "1.1.4",
|
|
60
|
+
"@types/yargs": "17.0.31",
|
|
61
61
|
"@typescript-eslint/eslint-plugin": "5.62.0",
|
|
62
62
|
"@typescript-eslint/parser": "5.62.0",
|
|
63
63
|
"dateformat": "4.6.3",
|
|
64
64
|
"del": "6.1.1",
|
|
65
|
-
"eslint": "8.
|
|
65
|
+
"eslint": "8.54.0",
|
|
66
66
|
"eslint-config-prettier": "9.0.0",
|
|
67
|
-
"eslint-plugin-prettier": "
|
|
67
|
+
"eslint-plugin-prettier": "5.0.1",
|
|
68
68
|
"husky": "8.0.3",
|
|
69
69
|
"jest": "^29.6.1",
|
|
70
|
-
"prettier": "
|
|
70
|
+
"prettier": "3.1.0",
|
|
71
71
|
"rollup": "2.79.1",
|
|
72
72
|
"rollup-plugin-typescript2": "0.36.0",
|
|
73
73
|
"semantic-release": "21.1.2",
|