@bussolabs/closeyourit-cli 0.0.5 → 0.0.6
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/dist/lib/output.js +22 -6
- package/oclif.manifest.json +358 -358
- package/package.json +1 -1
package/dist/lib/output.js
CHANGED
|
@@ -2,20 +2,36 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.renderTable = renderTable;
|
|
4
4
|
exports.renderRecord = renderRecord;
|
|
5
|
+
/**
|
|
6
|
+
* Neutralize terminal control sequences (CWE-150) in server-supplied strings.
|
|
7
|
+
* Log/error/ticket text is attacker-influenceable; printing raw ESC (0x1B) & co.
|
|
8
|
+
* to a TTY allows cursor/color/title injection. Replace every C0/C1 control char
|
|
9
|
+
* (0x00–0x1F, 0x7F–0x9F) with a space — ANSI is defused, width is preserved.
|
|
10
|
+
*/
|
|
11
|
+
function sanitize(value) {
|
|
12
|
+
let out = '';
|
|
13
|
+
for (const ch of String(value ?? '')) {
|
|
14
|
+
const code = ch.codePointAt(0) ?? 0;
|
|
15
|
+
out += code <= 0x1f || (code >= 0x7f && code <= 0x9f) ? ' ' : ch;
|
|
16
|
+
}
|
|
17
|
+
return out;
|
|
18
|
+
}
|
|
5
19
|
/** Minimal dependency-free table renderer for human output. */
|
|
6
20
|
function renderTable(headers, rows) {
|
|
7
|
-
|
|
8
|
-
|
|
21
|
+
const safeHeaders = headers.map(sanitize);
|
|
22
|
+
const safeRows = rows.map((row) => row.map(sanitize));
|
|
23
|
+
if (safeRows.length === 0) {
|
|
24
|
+
return `${safeHeaders.join(' ')}\n(no results)`;
|
|
9
25
|
}
|
|
10
|
-
const widths =
|
|
11
|
-
const line = (cols) => cols.map((cell, col) =>
|
|
26
|
+
const widths = safeHeaders.map((header, col) => Math.max(header.length, ...safeRows.map((row) => (row[col] ?? '').length)));
|
|
27
|
+
const line = (cols) => cols.map((cell, col) => (cell ?? '').padEnd(widths[col])).join(' ').trimEnd();
|
|
12
28
|
const separator = widths.map((width) => '-'.repeat(width));
|
|
13
|
-
return [line(
|
|
29
|
+
return [line(safeHeaders), line(separator), ...safeRows.map(line)].join('\n');
|
|
14
30
|
}
|
|
15
31
|
/** Pretty-print the scalar fields of a record as `key: value` lines. */
|
|
16
32
|
function renderRecord(obj) {
|
|
17
33
|
const lines = Object.entries(obj)
|
|
18
34
|
.filter(([, value]) => value === null || ['string', 'number', 'boolean'].includes(typeof value))
|
|
19
|
-
.map(([key, value]) => `${key}: ${value === null ? '-' : value}`);
|
|
35
|
+
.map(([key, value]) => `${sanitize(key)}: ${value === null ? '-' : sanitize(value)}`);
|
|
20
36
|
return lines.length > 0 ? lines.join('\n') : JSON.stringify(obj, null, 2);
|
|
21
37
|
}
|
package/oclif.manifest.json
CHANGED
|
@@ -987,19 +987,19 @@
|
|
|
987
987
|
"unmute.js"
|
|
988
988
|
]
|
|
989
989
|
},
|
|
990
|
-
"
|
|
990
|
+
"groups:create": {
|
|
991
991
|
"aliases": [],
|
|
992
992
|
"args": {
|
|
993
|
-
"
|
|
994
|
-
"description": "
|
|
995
|
-
"name": "
|
|
993
|
+
"name": {
|
|
994
|
+
"description": "Group name",
|
|
995
|
+
"name": "name",
|
|
996
996
|
"required": true
|
|
997
997
|
}
|
|
998
998
|
},
|
|
999
|
-
"description": "
|
|
999
|
+
"description": "Create a group (a container of related projects, e.g. \"DriverOne\")",
|
|
1000
1000
|
"examples": [
|
|
1001
|
-
"<%= config.bin %>
|
|
1002
|
-
"<%= config.bin %>
|
|
1001
|
+
"<%= config.bin %> groups create DriverOne",
|
|
1002
|
+
"<%= config.bin %> groups create DriverOne --color indigo"
|
|
1003
1003
|
],
|
|
1004
1004
|
"flags": {
|
|
1005
1005
|
"json": {
|
|
@@ -1009,23 +1009,17 @@
|
|
|
1009
1009
|
"allowNo": false,
|
|
1010
1010
|
"type": "boolean"
|
|
1011
1011
|
},
|
|
1012
|
-
"
|
|
1013
|
-
"description": "
|
|
1014
|
-
"name": "
|
|
1015
|
-
"default": "customer",
|
|
1012
|
+
"color": {
|
|
1013
|
+
"description": "Color label",
|
|
1014
|
+
"name": "color",
|
|
1016
1015
|
"hasDynamicHelp": false,
|
|
1017
1016
|
"multiple": false,
|
|
1018
|
-
"options": [
|
|
1019
|
-
"customer",
|
|
1020
|
-
"member",
|
|
1021
|
-
"admin"
|
|
1022
|
-
],
|
|
1023
1017
|
"type": "option"
|
|
1024
1018
|
}
|
|
1025
1019
|
},
|
|
1026
1020
|
"hasDynamicHelp": false,
|
|
1027
1021
|
"hiddenAliases": [],
|
|
1028
|
-
"id": "
|
|
1022
|
+
"id": "groups:create",
|
|
1029
1023
|
"pluginAlias": "@bussolabs/closeyourit-cli",
|
|
1030
1024
|
"pluginName": "@bussolabs/closeyourit-cli",
|
|
1031
1025
|
"pluginType": "core",
|
|
@@ -1035,17 +1029,22 @@
|
|
|
1035
1029
|
"relativePath": [
|
|
1036
1030
|
"dist",
|
|
1037
1031
|
"commands",
|
|
1038
|
-
"
|
|
1032
|
+
"groups",
|
|
1039
1033
|
"create.js"
|
|
1040
1034
|
]
|
|
1041
1035
|
},
|
|
1042
|
-
"
|
|
1036
|
+
"groups:delete": {
|
|
1043
1037
|
"aliases": [],
|
|
1044
|
-
"args": {
|
|
1045
|
-
|
|
1038
|
+
"args": {
|
|
1039
|
+
"group": {
|
|
1040
|
+
"description": "Group id (UUID) or name",
|
|
1041
|
+
"name": "group",
|
|
1042
|
+
"required": true
|
|
1043
|
+
}
|
|
1044
|
+
},
|
|
1045
|
+
"description": "Delete a group (its projects are detached, not deleted)",
|
|
1046
1046
|
"examples": [
|
|
1047
|
-
"<%= config.bin %>
|
|
1048
|
-
"<%= config.bin %> invitations list --json"
|
|
1047
|
+
"<%= config.bin %> groups delete Backend --confirm"
|
|
1049
1048
|
],
|
|
1050
1049
|
"flags": {
|
|
1051
1050
|
"json": {
|
|
@@ -1055,18 +1054,16 @@
|
|
|
1055
1054
|
"allowNo": false,
|
|
1056
1055
|
"type": "boolean"
|
|
1057
1056
|
},
|
|
1058
|
-
"
|
|
1059
|
-
"description": "
|
|
1060
|
-
"name": "
|
|
1061
|
-
"
|
|
1062
|
-
"
|
|
1063
|
-
"multiple": false,
|
|
1064
|
-
"type": "option"
|
|
1057
|
+
"confirm": {
|
|
1058
|
+
"description": "Required: confirm the deletion",
|
|
1059
|
+
"name": "confirm",
|
|
1060
|
+
"allowNo": false,
|
|
1061
|
+
"type": "boolean"
|
|
1065
1062
|
}
|
|
1066
1063
|
},
|
|
1067
1064
|
"hasDynamicHelp": false,
|
|
1068
1065
|
"hiddenAliases": [],
|
|
1069
|
-
"id": "
|
|
1066
|
+
"id": "groups:delete",
|
|
1070
1067
|
"pluginAlias": "@bussolabs/closeyourit-cli",
|
|
1071
1068
|
"pluginName": "@bussolabs/closeyourit-cli",
|
|
1072
1069
|
"pluginType": "core",
|
|
@@ -1076,22 +1073,17 @@
|
|
|
1076
1073
|
"relativePath": [
|
|
1077
1074
|
"dist",
|
|
1078
1075
|
"commands",
|
|
1079
|
-
"
|
|
1080
|
-
"
|
|
1076
|
+
"groups",
|
|
1077
|
+
"delete.js"
|
|
1081
1078
|
]
|
|
1082
1079
|
},
|
|
1083
|
-
"
|
|
1080
|
+
"groups:list": {
|
|
1084
1081
|
"aliases": [],
|
|
1085
|
-
"args": {
|
|
1086
|
-
|
|
1087
|
-
"description": "Invitation id (UUID)",
|
|
1088
|
-
"name": "id",
|
|
1089
|
-
"required": true
|
|
1090
|
-
}
|
|
1091
|
-
},
|
|
1092
|
-
"description": "Resend a pending invitation. Prints the acceptance link (shown only once).",
|
|
1082
|
+
"args": {},
|
|
1083
|
+
"description": "List the groups (macro-projects) in your organization",
|
|
1093
1084
|
"examples": [
|
|
1094
|
-
"<%= config.bin %>
|
|
1085
|
+
"<%= config.bin %> groups list",
|
|
1086
|
+
"<%= config.bin %> groups list --page 2 --json"
|
|
1095
1087
|
],
|
|
1096
1088
|
"flags": {
|
|
1097
1089
|
"json": {
|
|
@@ -1100,11 +1092,19 @@
|
|
|
1100
1092
|
"name": "json",
|
|
1101
1093
|
"allowNo": false,
|
|
1102
1094
|
"type": "boolean"
|
|
1095
|
+
},
|
|
1096
|
+
"page": {
|
|
1097
|
+
"description": "Page number",
|
|
1098
|
+
"name": "page",
|
|
1099
|
+
"default": 1,
|
|
1100
|
+
"hasDynamicHelp": false,
|
|
1101
|
+
"multiple": false,
|
|
1102
|
+
"type": "option"
|
|
1103
1103
|
}
|
|
1104
1104
|
},
|
|
1105
1105
|
"hasDynamicHelp": false,
|
|
1106
1106
|
"hiddenAliases": [],
|
|
1107
|
-
"id": "
|
|
1107
|
+
"id": "groups:list",
|
|
1108
1108
|
"pluginAlias": "@bussolabs/closeyourit-cli",
|
|
1109
1109
|
"pluginName": "@bussolabs/closeyourit-cli",
|
|
1110
1110
|
"pluginType": "core",
|
|
@@ -1114,22 +1114,23 @@
|
|
|
1114
1114
|
"relativePath": [
|
|
1115
1115
|
"dist",
|
|
1116
1116
|
"commands",
|
|
1117
|
-
"
|
|
1118
|
-
"
|
|
1117
|
+
"groups",
|
|
1118
|
+
"list.js"
|
|
1119
1119
|
]
|
|
1120
1120
|
},
|
|
1121
|
-
"
|
|
1121
|
+
"groups:update": {
|
|
1122
1122
|
"aliases": [],
|
|
1123
1123
|
"args": {
|
|
1124
|
-
"
|
|
1125
|
-
"description": "
|
|
1126
|
-
"name": "
|
|
1124
|
+
"group": {
|
|
1125
|
+
"description": "Group id (UUID) or name",
|
|
1126
|
+
"name": "group",
|
|
1127
1127
|
"required": true
|
|
1128
1128
|
}
|
|
1129
1129
|
},
|
|
1130
|
-
"description": "
|
|
1130
|
+
"description": "Update a group (rename or recolor)",
|
|
1131
1131
|
"examples": [
|
|
1132
|
-
"<%= config.bin %>
|
|
1132
|
+
"<%= config.bin %> groups update Backend --name \"Backend services\"",
|
|
1133
|
+
"<%= config.bin %> groups update Backend --color indigo"
|
|
1133
1134
|
],
|
|
1134
1135
|
"flags": {
|
|
1135
1136
|
"json": {
|
|
@@ -1138,11 +1139,25 @@
|
|
|
1138
1139
|
"name": "json",
|
|
1139
1140
|
"allowNo": false,
|
|
1140
1141
|
"type": "boolean"
|
|
1142
|
+
},
|
|
1143
|
+
"name": {
|
|
1144
|
+
"description": "New name",
|
|
1145
|
+
"name": "name",
|
|
1146
|
+
"hasDynamicHelp": false,
|
|
1147
|
+
"multiple": false,
|
|
1148
|
+
"type": "option"
|
|
1149
|
+
},
|
|
1150
|
+
"color": {
|
|
1151
|
+
"description": "Color label",
|
|
1152
|
+
"name": "color",
|
|
1153
|
+
"hasDynamicHelp": false,
|
|
1154
|
+
"multiple": false,
|
|
1155
|
+
"type": "option"
|
|
1141
1156
|
}
|
|
1142
1157
|
},
|
|
1143
1158
|
"hasDynamicHelp": false,
|
|
1144
1159
|
"hiddenAliases": [],
|
|
1145
|
-
"id": "
|
|
1160
|
+
"id": "groups:update",
|
|
1146
1161
|
"pluginAlias": "@bussolabs/closeyourit-cli",
|
|
1147
1162
|
"pluginName": "@bussolabs/closeyourit-cli",
|
|
1148
1163
|
"pluginType": "core",
|
|
@@ -1152,23 +1167,23 @@
|
|
|
1152
1167
|
"relativePath": [
|
|
1153
1168
|
"dist",
|
|
1154
1169
|
"commands",
|
|
1155
|
-
"
|
|
1156
|
-
"
|
|
1170
|
+
"groups",
|
|
1171
|
+
"update.js"
|
|
1157
1172
|
]
|
|
1158
1173
|
},
|
|
1159
|
-
"
|
|
1174
|
+
"invitations:create": {
|
|
1160
1175
|
"aliases": [],
|
|
1161
1176
|
"args": {
|
|
1162
|
-
"
|
|
1163
|
-
"description": "
|
|
1164
|
-
"name": "
|
|
1177
|
+
"email": {
|
|
1178
|
+
"description": "Email address to invite",
|
|
1179
|
+
"name": "email",
|
|
1165
1180
|
"required": true
|
|
1166
1181
|
}
|
|
1167
1182
|
},
|
|
1168
|
-
"description": "
|
|
1183
|
+
"description": "Invite a person to the organization. Prints the acceptance link (shown only once).",
|
|
1169
1184
|
"examples": [
|
|
1170
|
-
"<%= config.bin %>
|
|
1171
|
-
"<%= config.bin %>
|
|
1185
|
+
"<%= config.bin %> invitations create client@acme.com",
|
|
1186
|
+
"<%= config.bin %> invitations create teammate@acme.com --role member"
|
|
1172
1187
|
],
|
|
1173
1188
|
"flags": {
|
|
1174
1189
|
"json": {
|
|
@@ -1178,17 +1193,23 @@
|
|
|
1178
1193
|
"allowNo": false,
|
|
1179
1194
|
"type": "boolean"
|
|
1180
1195
|
},
|
|
1181
|
-
"
|
|
1182
|
-
"description": "
|
|
1183
|
-
"name": "
|
|
1196
|
+
"role": {
|
|
1197
|
+
"description": "Membership role",
|
|
1198
|
+
"name": "role",
|
|
1199
|
+
"default": "customer",
|
|
1184
1200
|
"hasDynamicHelp": false,
|
|
1185
1201
|
"multiple": false,
|
|
1202
|
+
"options": [
|
|
1203
|
+
"customer",
|
|
1204
|
+
"member",
|
|
1205
|
+
"admin"
|
|
1206
|
+
],
|
|
1186
1207
|
"type": "option"
|
|
1187
1208
|
}
|
|
1188
1209
|
},
|
|
1189
1210
|
"hasDynamicHelp": false,
|
|
1190
1211
|
"hiddenAliases": [],
|
|
1191
|
-
"id": "
|
|
1212
|
+
"id": "invitations:create",
|
|
1192
1213
|
"pluginAlias": "@bussolabs/closeyourit-cli",
|
|
1193
1214
|
"pluginName": "@bussolabs/closeyourit-cli",
|
|
1194
1215
|
"pluginType": "core",
|
|
@@ -1198,22 +1219,17 @@
|
|
|
1198
1219
|
"relativePath": [
|
|
1199
1220
|
"dist",
|
|
1200
1221
|
"commands",
|
|
1201
|
-
"
|
|
1222
|
+
"invitations",
|
|
1202
1223
|
"create.js"
|
|
1203
1224
|
]
|
|
1204
1225
|
},
|
|
1205
|
-
"
|
|
1226
|
+
"invitations:list": {
|
|
1206
1227
|
"aliases": [],
|
|
1207
|
-
"args": {
|
|
1208
|
-
|
|
1209
|
-
"description": "Group id (UUID) or name",
|
|
1210
|
-
"name": "group",
|
|
1211
|
-
"required": true
|
|
1212
|
-
}
|
|
1213
|
-
},
|
|
1214
|
-
"description": "Delete a group (its projects are detached, not deleted)",
|
|
1228
|
+
"args": {},
|
|
1229
|
+
"description": "List the pending/accepted invitations of your organization",
|
|
1215
1230
|
"examples": [
|
|
1216
|
-
"<%= config.bin %>
|
|
1231
|
+
"<%= config.bin %> invitations list",
|
|
1232
|
+
"<%= config.bin %> invitations list --json"
|
|
1217
1233
|
],
|
|
1218
1234
|
"flags": {
|
|
1219
1235
|
"json": {
|
|
@@ -1223,16 +1239,18 @@
|
|
|
1223
1239
|
"allowNo": false,
|
|
1224
1240
|
"type": "boolean"
|
|
1225
1241
|
},
|
|
1226
|
-
"
|
|
1227
|
-
"description": "
|
|
1228
|
-
"name": "
|
|
1229
|
-
"
|
|
1230
|
-
"
|
|
1242
|
+
"page": {
|
|
1243
|
+
"description": "Page number",
|
|
1244
|
+
"name": "page",
|
|
1245
|
+
"default": 1,
|
|
1246
|
+
"hasDynamicHelp": false,
|
|
1247
|
+
"multiple": false,
|
|
1248
|
+
"type": "option"
|
|
1231
1249
|
}
|
|
1232
1250
|
},
|
|
1233
1251
|
"hasDynamicHelp": false,
|
|
1234
1252
|
"hiddenAliases": [],
|
|
1235
|
-
"id": "
|
|
1253
|
+
"id": "invitations:list",
|
|
1236
1254
|
"pluginAlias": "@bussolabs/closeyourit-cli",
|
|
1237
1255
|
"pluginName": "@bussolabs/closeyourit-cli",
|
|
1238
1256
|
"pluginType": "core",
|
|
@@ -1242,17 +1260,22 @@
|
|
|
1242
1260
|
"relativePath": [
|
|
1243
1261
|
"dist",
|
|
1244
1262
|
"commands",
|
|
1245
|
-
"
|
|
1246
|
-
"
|
|
1263
|
+
"invitations",
|
|
1264
|
+
"list.js"
|
|
1247
1265
|
]
|
|
1248
1266
|
},
|
|
1249
|
-
"
|
|
1267
|
+
"invitations:resend": {
|
|
1250
1268
|
"aliases": [],
|
|
1251
|
-
"args": {
|
|
1252
|
-
|
|
1269
|
+
"args": {
|
|
1270
|
+
"id": {
|
|
1271
|
+
"description": "Invitation id (UUID)",
|
|
1272
|
+
"name": "id",
|
|
1273
|
+
"required": true
|
|
1274
|
+
}
|
|
1275
|
+
},
|
|
1276
|
+
"description": "Resend a pending invitation. Prints the acceptance link (shown only once).",
|
|
1253
1277
|
"examples": [
|
|
1254
|
-
"<%= config.bin %>
|
|
1255
|
-
"<%= config.bin %> groups list --page 2 --json"
|
|
1278
|
+
"<%= config.bin %> invitations resend <invitation-uuid>"
|
|
1256
1279
|
],
|
|
1257
1280
|
"flags": {
|
|
1258
1281
|
"json": {
|
|
@@ -1261,19 +1284,11 @@
|
|
|
1261
1284
|
"name": "json",
|
|
1262
1285
|
"allowNo": false,
|
|
1263
1286
|
"type": "boolean"
|
|
1264
|
-
},
|
|
1265
|
-
"page": {
|
|
1266
|
-
"description": "Page number",
|
|
1267
|
-
"name": "page",
|
|
1268
|
-
"default": 1,
|
|
1269
|
-
"hasDynamicHelp": false,
|
|
1270
|
-
"multiple": false,
|
|
1271
|
-
"type": "option"
|
|
1272
1287
|
}
|
|
1273
1288
|
},
|
|
1274
1289
|
"hasDynamicHelp": false,
|
|
1275
1290
|
"hiddenAliases": [],
|
|
1276
|
-
"id": "
|
|
1291
|
+
"id": "invitations:resend",
|
|
1277
1292
|
"pluginAlias": "@bussolabs/closeyourit-cli",
|
|
1278
1293
|
"pluginName": "@bussolabs/closeyourit-cli",
|
|
1279
1294
|
"pluginType": "core",
|
|
@@ -1283,23 +1298,22 @@
|
|
|
1283
1298
|
"relativePath": [
|
|
1284
1299
|
"dist",
|
|
1285
1300
|
"commands",
|
|
1286
|
-
"
|
|
1287
|
-
"
|
|
1301
|
+
"invitations",
|
|
1302
|
+
"resend.js"
|
|
1288
1303
|
]
|
|
1289
1304
|
},
|
|
1290
|
-
"
|
|
1305
|
+
"invitations:revoke": {
|
|
1291
1306
|
"aliases": [],
|
|
1292
1307
|
"args": {
|
|
1293
|
-
"
|
|
1294
|
-
"description": "
|
|
1295
|
-
"name": "
|
|
1308
|
+
"id": {
|
|
1309
|
+
"description": "Invitation id (UUID)",
|
|
1310
|
+
"name": "id",
|
|
1296
1311
|
"required": true
|
|
1297
1312
|
}
|
|
1298
1313
|
},
|
|
1299
|
-
"description": "
|
|
1314
|
+
"description": "Revoke a pending invitation",
|
|
1300
1315
|
"examples": [
|
|
1301
|
-
"<%= config.bin %>
|
|
1302
|
-
"<%= config.bin %> groups update Backend --color indigo"
|
|
1316
|
+
"<%= config.bin %> invitations revoke <invitation-uuid>"
|
|
1303
1317
|
],
|
|
1304
1318
|
"flags": {
|
|
1305
1319
|
"json": {
|
|
@@ -1308,25 +1322,11 @@
|
|
|
1308
1322
|
"name": "json",
|
|
1309
1323
|
"allowNo": false,
|
|
1310
1324
|
"type": "boolean"
|
|
1311
|
-
},
|
|
1312
|
-
"name": {
|
|
1313
|
-
"description": "New name",
|
|
1314
|
-
"name": "name",
|
|
1315
|
-
"hasDynamicHelp": false,
|
|
1316
|
-
"multiple": false,
|
|
1317
|
-
"type": "option"
|
|
1318
|
-
},
|
|
1319
|
-
"color": {
|
|
1320
|
-
"description": "Color label",
|
|
1321
|
-
"name": "color",
|
|
1322
|
-
"hasDynamicHelp": false,
|
|
1323
|
-
"multiple": false,
|
|
1324
|
-
"type": "option"
|
|
1325
1325
|
}
|
|
1326
1326
|
},
|
|
1327
1327
|
"hasDynamicHelp": false,
|
|
1328
1328
|
"hiddenAliases": [],
|
|
1329
|
-
"id": "
|
|
1329
|
+
"id": "invitations:revoke",
|
|
1330
1330
|
"pluginAlias": "@bussolabs/closeyourit-cli",
|
|
1331
1331
|
"pluginName": "@bussolabs/closeyourit-cli",
|
|
1332
1332
|
"pluginType": "core",
|
|
@@ -1336,8 +1336,8 @@
|
|
|
1336
1336
|
"relativePath": [
|
|
1337
1337
|
"dist",
|
|
1338
1338
|
"commands",
|
|
1339
|
-
"
|
|
1340
|
-
"
|
|
1339
|
+
"invitations",
|
|
1340
|
+
"revoke.js"
|
|
1341
1341
|
]
|
|
1342
1342
|
},
|
|
1343
1343
|
"logs:list": {
|
|
@@ -2753,16 +2753,245 @@
|
|
|
2753
2753
|
"update.js"
|
|
2754
2754
|
]
|
|
2755
2755
|
},
|
|
2756
|
-
"
|
|
2756
|
+
"roles:create": {
|
|
2757
2757
|
"aliases": [],
|
|
2758
2758
|
"args": {
|
|
2759
2759
|
"name": {
|
|
2760
|
-
"description": "
|
|
2760
|
+
"description": "Role name",
|
|
2761
2761
|
"name": "name",
|
|
2762
2762
|
"required": true
|
|
2763
2763
|
}
|
|
2764
2764
|
},
|
|
2765
|
-
"description": "Create
|
|
2765
|
+
"description": "Create an RBAC role (a named bundle of permission keys)",
|
|
2766
|
+
"examples": [
|
|
2767
|
+
"<%= config.bin %> roles create Client --permission tickets.edit --permission tickets.assign"
|
|
2768
|
+
],
|
|
2769
|
+
"flags": {
|
|
2770
|
+
"json": {
|
|
2771
|
+
"description": "Format output as json.",
|
|
2772
|
+
"helpGroup": "GLOBAL",
|
|
2773
|
+
"name": "json",
|
|
2774
|
+
"allowNo": false,
|
|
2775
|
+
"type": "boolean"
|
|
2776
|
+
},
|
|
2777
|
+
"color": {
|
|
2778
|
+
"description": "Color label",
|
|
2779
|
+
"name": "color",
|
|
2780
|
+
"hasDynamicHelp": false,
|
|
2781
|
+
"multiple": false,
|
|
2782
|
+
"type": "option"
|
|
2783
|
+
},
|
|
2784
|
+
"permission": {
|
|
2785
|
+
"description": "Permission key from the catalog (repeatable)",
|
|
2786
|
+
"name": "permission",
|
|
2787
|
+
"hasDynamicHelp": false,
|
|
2788
|
+
"multiple": true,
|
|
2789
|
+
"type": "option"
|
|
2790
|
+
}
|
|
2791
|
+
},
|
|
2792
|
+
"hasDynamicHelp": false,
|
|
2793
|
+
"hiddenAliases": [],
|
|
2794
|
+
"id": "roles:create",
|
|
2795
|
+
"pluginAlias": "@bussolabs/closeyourit-cli",
|
|
2796
|
+
"pluginName": "@bussolabs/closeyourit-cli",
|
|
2797
|
+
"pluginType": "core",
|
|
2798
|
+
"strict": true,
|
|
2799
|
+
"enableJsonFlag": true,
|
|
2800
|
+
"isESM": false,
|
|
2801
|
+
"relativePath": [
|
|
2802
|
+
"dist",
|
|
2803
|
+
"commands",
|
|
2804
|
+
"roles",
|
|
2805
|
+
"create.js"
|
|
2806
|
+
]
|
|
2807
|
+
},
|
|
2808
|
+
"roles:delete": {
|
|
2809
|
+
"aliases": [],
|
|
2810
|
+
"args": {
|
|
2811
|
+
"role": {
|
|
2812
|
+
"description": "Role id (UUID) or name",
|
|
2813
|
+
"name": "role",
|
|
2814
|
+
"required": true
|
|
2815
|
+
}
|
|
2816
|
+
},
|
|
2817
|
+
"description": "Delete a role (its assignments to teams and accounts are removed)",
|
|
2818
|
+
"examples": [
|
|
2819
|
+
"<%= config.bin %> roles delete Client"
|
|
2820
|
+
],
|
|
2821
|
+
"flags": {
|
|
2822
|
+
"json": {
|
|
2823
|
+
"description": "Format output as json.",
|
|
2824
|
+
"helpGroup": "GLOBAL",
|
|
2825
|
+
"name": "json",
|
|
2826
|
+
"allowNo": false,
|
|
2827
|
+
"type": "boolean"
|
|
2828
|
+
}
|
|
2829
|
+
},
|
|
2830
|
+
"hasDynamicHelp": false,
|
|
2831
|
+
"hiddenAliases": [],
|
|
2832
|
+
"id": "roles:delete",
|
|
2833
|
+
"pluginAlias": "@bussolabs/closeyourit-cli",
|
|
2834
|
+
"pluginName": "@bussolabs/closeyourit-cli",
|
|
2835
|
+
"pluginType": "core",
|
|
2836
|
+
"strict": true,
|
|
2837
|
+
"enableJsonFlag": true,
|
|
2838
|
+
"isESM": false,
|
|
2839
|
+
"relativePath": [
|
|
2840
|
+
"dist",
|
|
2841
|
+
"commands",
|
|
2842
|
+
"roles",
|
|
2843
|
+
"delete.js"
|
|
2844
|
+
]
|
|
2845
|
+
},
|
|
2846
|
+
"roles:list": {
|
|
2847
|
+
"aliases": [],
|
|
2848
|
+
"args": {},
|
|
2849
|
+
"description": "List the RBAC roles in your organization",
|
|
2850
|
+
"examples": [
|
|
2851
|
+
"<%= config.bin %> roles list",
|
|
2852
|
+
"<%= config.bin %> roles list --json"
|
|
2853
|
+
],
|
|
2854
|
+
"flags": {
|
|
2855
|
+
"json": {
|
|
2856
|
+
"description": "Format output as json.",
|
|
2857
|
+
"helpGroup": "GLOBAL",
|
|
2858
|
+
"name": "json",
|
|
2859
|
+
"allowNo": false,
|
|
2860
|
+
"type": "boolean"
|
|
2861
|
+
},
|
|
2862
|
+
"page": {
|
|
2863
|
+
"description": "Page number",
|
|
2864
|
+
"name": "page",
|
|
2865
|
+
"default": 1,
|
|
2866
|
+
"hasDynamicHelp": false,
|
|
2867
|
+
"multiple": false,
|
|
2868
|
+
"type": "option"
|
|
2869
|
+
}
|
|
2870
|
+
},
|
|
2871
|
+
"hasDynamicHelp": false,
|
|
2872
|
+
"hiddenAliases": [],
|
|
2873
|
+
"id": "roles:list",
|
|
2874
|
+
"pluginAlias": "@bussolabs/closeyourit-cli",
|
|
2875
|
+
"pluginName": "@bussolabs/closeyourit-cli",
|
|
2876
|
+
"pluginType": "core",
|
|
2877
|
+
"strict": true,
|
|
2878
|
+
"enableJsonFlag": true,
|
|
2879
|
+
"isESM": false,
|
|
2880
|
+
"relativePath": [
|
|
2881
|
+
"dist",
|
|
2882
|
+
"commands",
|
|
2883
|
+
"roles",
|
|
2884
|
+
"list.js"
|
|
2885
|
+
]
|
|
2886
|
+
},
|
|
2887
|
+
"roles:show": {
|
|
2888
|
+
"aliases": [],
|
|
2889
|
+
"args": {
|
|
2890
|
+
"role": {
|
|
2891
|
+
"description": "Role id (UUID) or name",
|
|
2892
|
+
"name": "role",
|
|
2893
|
+
"required": true
|
|
2894
|
+
}
|
|
2895
|
+
},
|
|
2896
|
+
"description": "Show a role by id or name (with its permission keys)",
|
|
2897
|
+
"examples": [
|
|
2898
|
+
"<%= config.bin %> roles show Client"
|
|
2899
|
+
],
|
|
2900
|
+
"flags": {
|
|
2901
|
+
"json": {
|
|
2902
|
+
"description": "Format output as json.",
|
|
2903
|
+
"helpGroup": "GLOBAL",
|
|
2904
|
+
"name": "json",
|
|
2905
|
+
"allowNo": false,
|
|
2906
|
+
"type": "boolean"
|
|
2907
|
+
}
|
|
2908
|
+
},
|
|
2909
|
+
"hasDynamicHelp": false,
|
|
2910
|
+
"hiddenAliases": [],
|
|
2911
|
+
"id": "roles:show",
|
|
2912
|
+
"pluginAlias": "@bussolabs/closeyourit-cli",
|
|
2913
|
+
"pluginName": "@bussolabs/closeyourit-cli",
|
|
2914
|
+
"pluginType": "core",
|
|
2915
|
+
"strict": true,
|
|
2916
|
+
"enableJsonFlag": true,
|
|
2917
|
+
"isESM": false,
|
|
2918
|
+
"relativePath": [
|
|
2919
|
+
"dist",
|
|
2920
|
+
"commands",
|
|
2921
|
+
"roles",
|
|
2922
|
+
"show.js"
|
|
2923
|
+
]
|
|
2924
|
+
},
|
|
2925
|
+
"roles:update": {
|
|
2926
|
+
"aliases": [],
|
|
2927
|
+
"args": {
|
|
2928
|
+
"role": {
|
|
2929
|
+
"description": "Role id (UUID) or name",
|
|
2930
|
+
"name": "role",
|
|
2931
|
+
"required": true
|
|
2932
|
+
}
|
|
2933
|
+
},
|
|
2934
|
+
"description": "Update a role (rename, recolor, or replace its permission keys)",
|
|
2935
|
+
"examples": [
|
|
2936
|
+
"<%= config.bin %> roles update Client --permission tickets.edit --permission tickets.assign",
|
|
2937
|
+
"<%= config.bin %> roles update Client --name \"Client manager\""
|
|
2938
|
+
],
|
|
2939
|
+
"flags": {
|
|
2940
|
+
"json": {
|
|
2941
|
+
"description": "Format output as json.",
|
|
2942
|
+
"helpGroup": "GLOBAL",
|
|
2943
|
+
"name": "json",
|
|
2944
|
+
"allowNo": false,
|
|
2945
|
+
"type": "boolean"
|
|
2946
|
+
},
|
|
2947
|
+
"color": {
|
|
2948
|
+
"description": "Color label",
|
|
2949
|
+
"name": "color",
|
|
2950
|
+
"hasDynamicHelp": false,
|
|
2951
|
+
"multiple": false,
|
|
2952
|
+
"type": "option"
|
|
2953
|
+
},
|
|
2954
|
+
"name": {
|
|
2955
|
+
"description": "New name",
|
|
2956
|
+
"name": "name",
|
|
2957
|
+
"hasDynamicHelp": false,
|
|
2958
|
+
"multiple": false,
|
|
2959
|
+
"type": "option"
|
|
2960
|
+
},
|
|
2961
|
+
"permission": {
|
|
2962
|
+
"description": "Permission key (repeatable); when given, REPLACES the whole set",
|
|
2963
|
+
"name": "permission",
|
|
2964
|
+
"hasDynamicHelp": false,
|
|
2965
|
+
"multiple": true,
|
|
2966
|
+
"type": "option"
|
|
2967
|
+
}
|
|
2968
|
+
},
|
|
2969
|
+
"hasDynamicHelp": false,
|
|
2970
|
+
"hiddenAliases": [],
|
|
2971
|
+
"id": "roles:update",
|
|
2972
|
+
"pluginAlias": "@bussolabs/closeyourit-cli",
|
|
2973
|
+
"pluginName": "@bussolabs/closeyourit-cli",
|
|
2974
|
+
"pluginType": "core",
|
|
2975
|
+
"strict": true,
|
|
2976
|
+
"enableJsonFlag": true,
|
|
2977
|
+
"isESM": false,
|
|
2978
|
+
"relativePath": [
|
|
2979
|
+
"dist",
|
|
2980
|
+
"commands",
|
|
2981
|
+
"roles",
|
|
2982
|
+
"update.js"
|
|
2983
|
+
]
|
|
2984
|
+
},
|
|
2985
|
+
"projects:create": {
|
|
2986
|
+
"aliases": [],
|
|
2987
|
+
"args": {
|
|
2988
|
+
"name": {
|
|
2989
|
+
"description": "Project name",
|
|
2990
|
+
"name": "name",
|
|
2991
|
+
"required": true
|
|
2992
|
+
}
|
|
2993
|
+
},
|
|
2994
|
+
"description": "Create a project (optionally inside a group)",
|
|
2766
2995
|
"examples": [
|
|
2767
2996
|
"<%= config.bin %> projects create driverone-rails --key DRRA",
|
|
2768
2997
|
"<%= config.bin %> projects create driverone-rails --group DriverOne --key DRRA",
|
|
@@ -3444,235 +3673,6 @@
|
|
|
3444
3673
|
"update.js"
|
|
3445
3674
|
]
|
|
3446
3675
|
},
|
|
3447
|
-
"roles:create": {
|
|
3448
|
-
"aliases": [],
|
|
3449
|
-
"args": {
|
|
3450
|
-
"name": {
|
|
3451
|
-
"description": "Role name",
|
|
3452
|
-
"name": "name",
|
|
3453
|
-
"required": true
|
|
3454
|
-
}
|
|
3455
|
-
},
|
|
3456
|
-
"description": "Create an RBAC role (a named bundle of permission keys)",
|
|
3457
|
-
"examples": [
|
|
3458
|
-
"<%= config.bin %> roles create Client --permission tickets.edit --permission tickets.assign"
|
|
3459
|
-
],
|
|
3460
|
-
"flags": {
|
|
3461
|
-
"json": {
|
|
3462
|
-
"description": "Format output as json.",
|
|
3463
|
-
"helpGroup": "GLOBAL",
|
|
3464
|
-
"name": "json",
|
|
3465
|
-
"allowNo": false,
|
|
3466
|
-
"type": "boolean"
|
|
3467
|
-
},
|
|
3468
|
-
"color": {
|
|
3469
|
-
"description": "Color label",
|
|
3470
|
-
"name": "color",
|
|
3471
|
-
"hasDynamicHelp": false,
|
|
3472
|
-
"multiple": false,
|
|
3473
|
-
"type": "option"
|
|
3474
|
-
},
|
|
3475
|
-
"permission": {
|
|
3476
|
-
"description": "Permission key from the catalog (repeatable)",
|
|
3477
|
-
"name": "permission",
|
|
3478
|
-
"hasDynamicHelp": false,
|
|
3479
|
-
"multiple": true,
|
|
3480
|
-
"type": "option"
|
|
3481
|
-
}
|
|
3482
|
-
},
|
|
3483
|
-
"hasDynamicHelp": false,
|
|
3484
|
-
"hiddenAliases": [],
|
|
3485
|
-
"id": "roles:create",
|
|
3486
|
-
"pluginAlias": "@bussolabs/closeyourit-cli",
|
|
3487
|
-
"pluginName": "@bussolabs/closeyourit-cli",
|
|
3488
|
-
"pluginType": "core",
|
|
3489
|
-
"strict": true,
|
|
3490
|
-
"enableJsonFlag": true,
|
|
3491
|
-
"isESM": false,
|
|
3492
|
-
"relativePath": [
|
|
3493
|
-
"dist",
|
|
3494
|
-
"commands",
|
|
3495
|
-
"roles",
|
|
3496
|
-
"create.js"
|
|
3497
|
-
]
|
|
3498
|
-
},
|
|
3499
|
-
"roles:delete": {
|
|
3500
|
-
"aliases": [],
|
|
3501
|
-
"args": {
|
|
3502
|
-
"role": {
|
|
3503
|
-
"description": "Role id (UUID) or name",
|
|
3504
|
-
"name": "role",
|
|
3505
|
-
"required": true
|
|
3506
|
-
}
|
|
3507
|
-
},
|
|
3508
|
-
"description": "Delete a role (its assignments to teams and accounts are removed)",
|
|
3509
|
-
"examples": [
|
|
3510
|
-
"<%= config.bin %> roles delete Client"
|
|
3511
|
-
],
|
|
3512
|
-
"flags": {
|
|
3513
|
-
"json": {
|
|
3514
|
-
"description": "Format output as json.",
|
|
3515
|
-
"helpGroup": "GLOBAL",
|
|
3516
|
-
"name": "json",
|
|
3517
|
-
"allowNo": false,
|
|
3518
|
-
"type": "boolean"
|
|
3519
|
-
}
|
|
3520
|
-
},
|
|
3521
|
-
"hasDynamicHelp": false,
|
|
3522
|
-
"hiddenAliases": [],
|
|
3523
|
-
"id": "roles:delete",
|
|
3524
|
-
"pluginAlias": "@bussolabs/closeyourit-cli",
|
|
3525
|
-
"pluginName": "@bussolabs/closeyourit-cli",
|
|
3526
|
-
"pluginType": "core",
|
|
3527
|
-
"strict": true,
|
|
3528
|
-
"enableJsonFlag": true,
|
|
3529
|
-
"isESM": false,
|
|
3530
|
-
"relativePath": [
|
|
3531
|
-
"dist",
|
|
3532
|
-
"commands",
|
|
3533
|
-
"roles",
|
|
3534
|
-
"delete.js"
|
|
3535
|
-
]
|
|
3536
|
-
},
|
|
3537
|
-
"roles:list": {
|
|
3538
|
-
"aliases": [],
|
|
3539
|
-
"args": {},
|
|
3540
|
-
"description": "List the RBAC roles in your organization",
|
|
3541
|
-
"examples": [
|
|
3542
|
-
"<%= config.bin %> roles list",
|
|
3543
|
-
"<%= config.bin %> roles list --json"
|
|
3544
|
-
],
|
|
3545
|
-
"flags": {
|
|
3546
|
-
"json": {
|
|
3547
|
-
"description": "Format output as json.",
|
|
3548
|
-
"helpGroup": "GLOBAL",
|
|
3549
|
-
"name": "json",
|
|
3550
|
-
"allowNo": false,
|
|
3551
|
-
"type": "boolean"
|
|
3552
|
-
},
|
|
3553
|
-
"page": {
|
|
3554
|
-
"description": "Page number",
|
|
3555
|
-
"name": "page",
|
|
3556
|
-
"default": 1,
|
|
3557
|
-
"hasDynamicHelp": false,
|
|
3558
|
-
"multiple": false,
|
|
3559
|
-
"type": "option"
|
|
3560
|
-
}
|
|
3561
|
-
},
|
|
3562
|
-
"hasDynamicHelp": false,
|
|
3563
|
-
"hiddenAliases": [],
|
|
3564
|
-
"id": "roles:list",
|
|
3565
|
-
"pluginAlias": "@bussolabs/closeyourit-cli",
|
|
3566
|
-
"pluginName": "@bussolabs/closeyourit-cli",
|
|
3567
|
-
"pluginType": "core",
|
|
3568
|
-
"strict": true,
|
|
3569
|
-
"enableJsonFlag": true,
|
|
3570
|
-
"isESM": false,
|
|
3571
|
-
"relativePath": [
|
|
3572
|
-
"dist",
|
|
3573
|
-
"commands",
|
|
3574
|
-
"roles",
|
|
3575
|
-
"list.js"
|
|
3576
|
-
]
|
|
3577
|
-
},
|
|
3578
|
-
"roles:show": {
|
|
3579
|
-
"aliases": [],
|
|
3580
|
-
"args": {
|
|
3581
|
-
"role": {
|
|
3582
|
-
"description": "Role id (UUID) or name",
|
|
3583
|
-
"name": "role",
|
|
3584
|
-
"required": true
|
|
3585
|
-
}
|
|
3586
|
-
},
|
|
3587
|
-
"description": "Show a role by id or name (with its permission keys)",
|
|
3588
|
-
"examples": [
|
|
3589
|
-
"<%= config.bin %> roles show Client"
|
|
3590
|
-
],
|
|
3591
|
-
"flags": {
|
|
3592
|
-
"json": {
|
|
3593
|
-
"description": "Format output as json.",
|
|
3594
|
-
"helpGroup": "GLOBAL",
|
|
3595
|
-
"name": "json",
|
|
3596
|
-
"allowNo": false,
|
|
3597
|
-
"type": "boolean"
|
|
3598
|
-
}
|
|
3599
|
-
},
|
|
3600
|
-
"hasDynamicHelp": false,
|
|
3601
|
-
"hiddenAliases": [],
|
|
3602
|
-
"id": "roles:show",
|
|
3603
|
-
"pluginAlias": "@bussolabs/closeyourit-cli",
|
|
3604
|
-
"pluginName": "@bussolabs/closeyourit-cli",
|
|
3605
|
-
"pluginType": "core",
|
|
3606
|
-
"strict": true,
|
|
3607
|
-
"enableJsonFlag": true,
|
|
3608
|
-
"isESM": false,
|
|
3609
|
-
"relativePath": [
|
|
3610
|
-
"dist",
|
|
3611
|
-
"commands",
|
|
3612
|
-
"roles",
|
|
3613
|
-
"show.js"
|
|
3614
|
-
]
|
|
3615
|
-
},
|
|
3616
|
-
"roles:update": {
|
|
3617
|
-
"aliases": [],
|
|
3618
|
-
"args": {
|
|
3619
|
-
"role": {
|
|
3620
|
-
"description": "Role id (UUID) or name",
|
|
3621
|
-
"name": "role",
|
|
3622
|
-
"required": true
|
|
3623
|
-
}
|
|
3624
|
-
},
|
|
3625
|
-
"description": "Update a role (rename, recolor, or replace its permission keys)",
|
|
3626
|
-
"examples": [
|
|
3627
|
-
"<%= config.bin %> roles update Client --permission tickets.edit --permission tickets.assign",
|
|
3628
|
-
"<%= config.bin %> roles update Client --name \"Client manager\""
|
|
3629
|
-
],
|
|
3630
|
-
"flags": {
|
|
3631
|
-
"json": {
|
|
3632
|
-
"description": "Format output as json.",
|
|
3633
|
-
"helpGroup": "GLOBAL",
|
|
3634
|
-
"name": "json",
|
|
3635
|
-
"allowNo": false,
|
|
3636
|
-
"type": "boolean"
|
|
3637
|
-
},
|
|
3638
|
-
"color": {
|
|
3639
|
-
"description": "Color label",
|
|
3640
|
-
"name": "color",
|
|
3641
|
-
"hasDynamicHelp": false,
|
|
3642
|
-
"multiple": false,
|
|
3643
|
-
"type": "option"
|
|
3644
|
-
},
|
|
3645
|
-
"name": {
|
|
3646
|
-
"description": "New name",
|
|
3647
|
-
"name": "name",
|
|
3648
|
-
"hasDynamicHelp": false,
|
|
3649
|
-
"multiple": false,
|
|
3650
|
-
"type": "option"
|
|
3651
|
-
},
|
|
3652
|
-
"permission": {
|
|
3653
|
-
"description": "Permission key (repeatable); when given, REPLACES the whole set",
|
|
3654
|
-
"name": "permission",
|
|
3655
|
-
"hasDynamicHelp": false,
|
|
3656
|
-
"multiple": true,
|
|
3657
|
-
"type": "option"
|
|
3658
|
-
}
|
|
3659
|
-
},
|
|
3660
|
-
"hasDynamicHelp": false,
|
|
3661
|
-
"hiddenAliases": [],
|
|
3662
|
-
"id": "roles:update",
|
|
3663
|
-
"pluginAlias": "@bussolabs/closeyourit-cli",
|
|
3664
|
-
"pluginName": "@bussolabs/closeyourit-cli",
|
|
3665
|
-
"pluginType": "core",
|
|
3666
|
-
"strict": true,
|
|
3667
|
-
"enableJsonFlag": true,
|
|
3668
|
-
"isESM": false,
|
|
3669
|
-
"relativePath": [
|
|
3670
|
-
"dist",
|
|
3671
|
-
"commands",
|
|
3672
|
-
"roles",
|
|
3673
|
-
"update.js"
|
|
3674
|
-
]
|
|
3675
|
-
},
|
|
3676
3676
|
"tickets:assign": {
|
|
3677
3677
|
"aliases": [],
|
|
3678
3678
|
"args": {
|
|
@@ -4779,5 +4779,5 @@
|
|
|
4779
4779
|
]
|
|
4780
4780
|
}
|
|
4781
4781
|
},
|
|
4782
|
-
"version": "0.0.
|
|
4782
|
+
"version": "0.0.6"
|
|
4783
4783
|
}
|