appwrite-cli 6.0.0-rc.6 → 6.0.0-rc.7
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 +3 -3
- package/docs/examples/functions/{download-deployment.md → get-deployment-download.md} +1 -1
- package/docs/examples/functions/get-template.md +2 -0
- package/docs/examples/functions/list-templates.md +5 -0
- package/index.js +4 -3
- package/install.ps1 +2 -2
- package/install.sh +1 -1
- package/lib/client.js +3 -3
- package/lib/commands/account.js +1 -49
- package/lib/commands/assistant.js +1 -2
- package/lib/commands/avatars.js +1 -8
- package/lib/commands/console.js +1 -2
- package/lib/commands/databases.js +1 -49
- package/lib/commands/functions.js +121 -35
- package/lib/commands/generic.js +11 -11
- package/lib/commands/graphql.js +1 -3
- package/lib/commands/health.js +1 -24
- package/lib/commands/init.js +7 -20
- package/lib/commands/locale.js +1 -9
- package/lib/commands/messaging.js +1 -47
- package/lib/commands/migrations.js +1 -17
- package/lib/commands/project.js +1 -7
- package/lib/commands/projects.js +1 -46
- package/lib/commands/proxy.js +1 -6
- package/lib/commands/pull.js +73 -35
- package/lib/commands/push.js +120 -53
- package/lib/commands/run.js +10 -12
- package/lib/commands/storage.js +1 -16
- package/lib/commands/teams.js +1 -15
- package/lib/commands/users.js +1 -44
- package/lib/commands/vcs.js +1 -11
- package/lib/config.js +11 -7
- package/lib/emulation/docker.js +1 -3
- package/lib/paginate.js +3 -1
- package/lib/parser.js +12 -15
- package/lib/questions.js +16 -31
- package/package.json +2 -2
- package/scoop/appwrite.json +3 -3
package/lib/commands/init.js
CHANGED
|
@@ -129,7 +129,7 @@ const initBucket = async () => {
|
|
|
129
129
|
fileSecurity: answers.fileSecurity.toLowerCase() === 'yes',
|
|
130
130
|
enabled: true,
|
|
131
131
|
});
|
|
132
|
-
success();
|
|
132
|
+
success("Initialing bucket");
|
|
133
133
|
log("Next you can use 'appwrite push bucket' to deploy the changes.");
|
|
134
134
|
};
|
|
135
135
|
|
|
@@ -141,7 +141,7 @@ const initTeam = async () => {
|
|
|
141
141
|
name: answers.bucket,
|
|
142
142
|
});
|
|
143
143
|
|
|
144
|
-
success();
|
|
144
|
+
success("Initialing team");
|
|
145
145
|
log("Next you can use 'appwrite push team' to deploy the changes.");
|
|
146
146
|
};
|
|
147
147
|
|
|
@@ -174,7 +174,7 @@ const initCollection = async () => {
|
|
|
174
174
|
enabled: true,
|
|
175
175
|
});
|
|
176
176
|
|
|
177
|
-
success();
|
|
177
|
+
success("Initialing collection");
|
|
178
178
|
log("Next you can use 'appwrite push collection' to deploy the changes.");
|
|
179
179
|
};
|
|
180
180
|
|
|
@@ -187,7 +187,7 @@ const initTopic = async () => {
|
|
|
187
187
|
|
|
188
188
|
});
|
|
189
189
|
|
|
190
|
-
success();
|
|
190
|
+
success("Initialing topic");
|
|
191
191
|
log("Next you can use 'appwrite push topic' to deploy the changes.");
|
|
192
192
|
};
|
|
193
193
|
|
|
@@ -223,21 +223,7 @@ const initFunction = async () => {
|
|
|
223
223
|
fs.mkdirSync(templatesDir, "777");
|
|
224
224
|
const repo = "https://github.com/appwrite/templates";
|
|
225
225
|
const api = `https://api.github.com/repos/appwrite/templates/contents/${answers.runtime.name}`
|
|
226
|
-
let selected =
|
|
227
|
-
|
|
228
|
-
if(answers.template === 'starter') {
|
|
229
|
-
selected = { template: 'starter' };
|
|
230
|
-
} else {
|
|
231
|
-
try {
|
|
232
|
-
const res = await fetch(api);
|
|
233
|
-
const templates = [];
|
|
234
|
-
templates.push(...(await res.json()).map((template) => template.name));
|
|
235
|
-
selected = await inquirer.prompt(questionsCreateFunctionSelectTemplate(templates));
|
|
236
|
-
} catch {
|
|
237
|
-
// Not a problem will go with directory pulling
|
|
238
|
-
log('Loading templates...');
|
|
239
|
-
}
|
|
240
|
-
}
|
|
226
|
+
let selected = { template: 'starter' };
|
|
241
227
|
|
|
242
228
|
const sparse = (selected ? `${answers.runtime.name}/${selected.template}` : answers.runtime.name).toLowerCase();
|
|
243
229
|
|
|
@@ -312,6 +298,7 @@ const initFunction = async () => {
|
|
|
312
298
|
runtime: answers.runtime.id,
|
|
313
299
|
execute: [],
|
|
314
300
|
events: [],
|
|
301
|
+
scopes: [],
|
|
315
302
|
schedule: "",
|
|
316
303
|
timeout: 15,
|
|
317
304
|
enabled: true,
|
|
@@ -323,7 +310,7 @@ const initFunction = async () => {
|
|
|
323
310
|
};
|
|
324
311
|
|
|
325
312
|
localConfig.addFunction(data);
|
|
326
|
-
success();
|
|
313
|
+
success("Initialing function");
|
|
327
314
|
log("Next you can use 'appwrite run function' to develop a function locally. To deploy the function, use 'appwrite push function'");
|
|
328
315
|
}
|
|
329
316
|
|
package/lib/commands/locale.js
CHANGED
|
@@ -35,7 +35,7 @@ function convertReadStreamToReadableStream(readStream) {
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
const locale = new Command("locale").description(commandDescriptions['locale']).configureHelp({
|
|
38
|
+
const locale = new Command("locale").description(commandDescriptions['locale'] ?? '').configureHelp({
|
|
39
39
|
helpWidth: process.stdout.columns || 80
|
|
40
40
|
})
|
|
41
41
|
|
|
@@ -63,7 +63,6 @@ const localeGet = async ({parseOutput = true, overrideForCli = false, sdk = unde
|
|
|
63
63
|
|
|
64
64
|
if (parseOutput) {
|
|
65
65
|
parse(response)
|
|
66
|
-
success()
|
|
67
66
|
}
|
|
68
67
|
|
|
69
68
|
return response;
|
|
@@ -94,7 +93,6 @@ const localeListCodes = async ({parseOutput = true, overrideForCli = false, sdk
|
|
|
94
93
|
|
|
95
94
|
if (parseOutput) {
|
|
96
95
|
parse(response)
|
|
97
|
-
success()
|
|
98
96
|
}
|
|
99
97
|
|
|
100
98
|
return response;
|
|
@@ -125,7 +123,6 @@ const localeListContinents = async ({parseOutput = true, overrideForCli = false,
|
|
|
125
123
|
|
|
126
124
|
if (parseOutput) {
|
|
127
125
|
parse(response)
|
|
128
|
-
success()
|
|
129
126
|
}
|
|
130
127
|
|
|
131
128
|
return response;
|
|
@@ -156,7 +153,6 @@ const localeListCountries = async ({parseOutput = true, overrideForCli = false,
|
|
|
156
153
|
|
|
157
154
|
if (parseOutput) {
|
|
158
155
|
parse(response)
|
|
159
|
-
success()
|
|
160
156
|
}
|
|
161
157
|
|
|
162
158
|
return response;
|
|
@@ -187,7 +183,6 @@ const localeListCountriesEU = async ({parseOutput = true, overrideForCli = false
|
|
|
187
183
|
|
|
188
184
|
if (parseOutput) {
|
|
189
185
|
parse(response)
|
|
190
|
-
success()
|
|
191
186
|
}
|
|
192
187
|
|
|
193
188
|
return response;
|
|
@@ -218,7 +213,6 @@ const localeListCountriesPhones = async ({parseOutput = true, overrideForCli = f
|
|
|
218
213
|
|
|
219
214
|
if (parseOutput) {
|
|
220
215
|
parse(response)
|
|
221
|
-
success()
|
|
222
216
|
}
|
|
223
217
|
|
|
224
218
|
return response;
|
|
@@ -249,7 +243,6 @@ const localeListCurrencies = async ({parseOutput = true, overrideForCli = false,
|
|
|
249
243
|
|
|
250
244
|
if (parseOutput) {
|
|
251
245
|
parse(response)
|
|
252
|
-
success()
|
|
253
246
|
}
|
|
254
247
|
|
|
255
248
|
return response;
|
|
@@ -280,7 +273,6 @@ const localeListLanguages = async ({parseOutput = true, overrideForCli = false,
|
|
|
280
273
|
|
|
281
274
|
if (parseOutput) {
|
|
282
275
|
parse(response)
|
|
283
|
-
success()
|
|
284
276
|
}
|
|
285
277
|
|
|
286
278
|
return response;
|
|
@@ -35,7 +35,7 @@ function convertReadStreamToReadableStream(readStream) {
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
const messaging = new Command("messaging").description(commandDescriptions['messaging']).configureHelp({
|
|
38
|
+
const messaging = new Command("messaging").description(commandDescriptions['messaging'] ?? '').configureHelp({
|
|
39
39
|
helpWidth: process.stdout.columns || 80
|
|
40
40
|
})
|
|
41
41
|
|
|
@@ -74,7 +74,6 @@ const messagingListMessages = async ({queries,search,parseOutput = true, overrid
|
|
|
74
74
|
showConsoleLink('messaging', 'listMessages');
|
|
75
75
|
} else {
|
|
76
76
|
parse(response)
|
|
77
|
-
success()
|
|
78
77
|
}
|
|
79
78
|
}
|
|
80
79
|
|
|
@@ -160,7 +159,6 @@ const messagingCreateEmail = async ({messageId,subject,content,topics,users,targ
|
|
|
160
159
|
|
|
161
160
|
if (parseOutput) {
|
|
162
161
|
parse(response)
|
|
163
|
-
success()
|
|
164
162
|
}
|
|
165
163
|
|
|
166
164
|
return response;
|
|
@@ -242,7 +240,6 @@ const messagingUpdateEmail = async ({messageId,topics,users,targets,subject,cont
|
|
|
242
240
|
|
|
243
241
|
if (parseOutput) {
|
|
244
242
|
parse(response)
|
|
245
|
-
success()
|
|
246
243
|
}
|
|
247
244
|
|
|
248
245
|
return response;
|
|
@@ -340,7 +337,6 @@ const messagingCreatePush = async ({messageId,title,body,topics,users,targets,da
|
|
|
340
337
|
|
|
341
338
|
if (parseOutput) {
|
|
342
339
|
parse(response)
|
|
343
|
-
success()
|
|
344
340
|
}
|
|
345
341
|
|
|
346
342
|
return response;
|
|
@@ -435,7 +431,6 @@ const messagingUpdatePush = async ({messageId,topics,users,targets,title,body,da
|
|
|
435
431
|
|
|
436
432
|
if (parseOutput) {
|
|
437
433
|
parse(response)
|
|
438
|
-
success()
|
|
439
434
|
}
|
|
440
435
|
|
|
441
436
|
return response;
|
|
@@ -497,7 +492,6 @@ const messagingCreateSms = async ({messageId,content,topics,users,targets,draft,
|
|
|
497
492
|
|
|
498
493
|
if (parseOutput) {
|
|
499
494
|
parse(response)
|
|
500
|
-
success()
|
|
501
495
|
}
|
|
502
496
|
|
|
503
497
|
return response;
|
|
@@ -556,7 +550,6 @@ const messagingUpdateSms = async ({messageId,topics,users,targets,content,draft,
|
|
|
556
550
|
|
|
557
551
|
if (parseOutput) {
|
|
558
552
|
parse(response)
|
|
559
|
-
success()
|
|
560
553
|
}
|
|
561
554
|
|
|
562
555
|
return response;
|
|
@@ -591,7 +584,6 @@ const messagingGetMessage = async ({messageId,parseOutput = true, overrideForCli
|
|
|
591
584
|
showConsoleLink('messaging', 'getMessage', messageId);
|
|
592
585
|
} else {
|
|
593
586
|
parse(response)
|
|
594
|
-
success()
|
|
595
587
|
}
|
|
596
588
|
}
|
|
597
589
|
|
|
@@ -624,7 +616,6 @@ const messagingDelete = async ({messageId,parseOutput = true, overrideForCli = f
|
|
|
624
616
|
|
|
625
617
|
if (parseOutput) {
|
|
626
618
|
parse(response)
|
|
627
|
-
success()
|
|
628
619
|
}
|
|
629
620
|
|
|
630
621
|
return response;
|
|
@@ -663,7 +654,6 @@ const messagingListMessageLogs = async ({messageId,queries,parseOutput = true, o
|
|
|
663
654
|
showConsoleLink('messaging', 'listMessageLogs', messageId);
|
|
664
655
|
} else {
|
|
665
656
|
parse(response)
|
|
666
|
-
success()
|
|
667
657
|
}
|
|
668
658
|
}
|
|
669
659
|
|
|
@@ -700,7 +690,6 @@ const messagingListTargets = async ({messageId,queries,parseOutput = true, overr
|
|
|
700
690
|
|
|
701
691
|
if (parseOutput) {
|
|
702
692
|
parse(response)
|
|
703
|
-
success()
|
|
704
693
|
}
|
|
705
694
|
|
|
706
695
|
return response;
|
|
@@ -742,7 +731,6 @@ const messagingListProviders = async ({queries,search,parseOutput = true, overri
|
|
|
742
731
|
showConsoleLink('messaging', 'listProviders');
|
|
743
732
|
} else {
|
|
744
733
|
parse(response)
|
|
745
|
-
success()
|
|
746
734
|
}
|
|
747
735
|
}
|
|
748
736
|
|
|
@@ -806,7 +794,6 @@ const messagingCreateApnsProvider = async ({providerId,name,authKey,authKeyId,te
|
|
|
806
794
|
|
|
807
795
|
if (parseOutput) {
|
|
808
796
|
parse(response)
|
|
809
|
-
success()
|
|
810
797
|
}
|
|
811
798
|
|
|
812
799
|
return response;
|
|
@@ -866,7 +853,6 @@ const messagingUpdateApnsProvider = async ({providerId,name,enabled,authKey,auth
|
|
|
866
853
|
|
|
867
854
|
if (parseOutput) {
|
|
868
855
|
parse(response)
|
|
869
|
-
success()
|
|
870
856
|
}
|
|
871
857
|
|
|
872
858
|
return response;
|
|
@@ -913,7 +899,6 @@ const messagingCreateFcmProvider = async ({providerId,name,serviceAccountJSON,en
|
|
|
913
899
|
|
|
914
900
|
if (parseOutput) {
|
|
915
901
|
parse(response)
|
|
916
|
-
success()
|
|
917
902
|
}
|
|
918
903
|
|
|
919
904
|
return response;
|
|
@@ -957,7 +942,6 @@ const messagingUpdateFcmProvider = async ({providerId,name,enabled,serviceAccoun
|
|
|
957
942
|
|
|
958
943
|
if (parseOutput) {
|
|
959
944
|
parse(response)
|
|
960
|
-
success()
|
|
961
945
|
}
|
|
962
946
|
|
|
963
947
|
return response;
|
|
@@ -1028,7 +1012,6 @@ const messagingCreateMailgunProvider = async ({providerId,name,apiKey,domain,isE
|
|
|
1028
1012
|
|
|
1029
1013
|
if (parseOutput) {
|
|
1030
1014
|
parse(response)
|
|
1031
|
-
success()
|
|
1032
1015
|
}
|
|
1033
1016
|
|
|
1034
1017
|
return response;
|
|
@@ -1096,7 +1079,6 @@ const messagingUpdateMailgunProvider = async ({providerId,name,apiKey,domain,isE
|
|
|
1096
1079
|
|
|
1097
1080
|
if (parseOutput) {
|
|
1098
1081
|
parse(response)
|
|
1099
|
-
success()
|
|
1100
1082
|
}
|
|
1101
1083
|
|
|
1102
1084
|
return response;
|
|
@@ -1151,7 +1133,6 @@ const messagingCreateMsg91Provider = async ({providerId,name,templateId,senderId
|
|
|
1151
1133
|
|
|
1152
1134
|
if (parseOutput) {
|
|
1153
1135
|
parse(response)
|
|
1154
|
-
success()
|
|
1155
1136
|
}
|
|
1156
1137
|
|
|
1157
1138
|
return response;
|
|
@@ -1203,7 +1184,6 @@ const messagingUpdateMsg91Provider = async ({providerId,name,enabled,templateId,
|
|
|
1203
1184
|
|
|
1204
1185
|
if (parseOutput) {
|
|
1205
1186
|
parse(response)
|
|
1206
|
-
success()
|
|
1207
1187
|
}
|
|
1208
1188
|
|
|
1209
1189
|
return response;
|
|
@@ -1266,7 +1246,6 @@ const messagingCreateSendgridProvider = async ({providerId,name,apiKey,fromName,
|
|
|
1266
1246
|
|
|
1267
1247
|
if (parseOutput) {
|
|
1268
1248
|
parse(response)
|
|
1269
|
-
success()
|
|
1270
1249
|
}
|
|
1271
1250
|
|
|
1272
1251
|
return response;
|
|
@@ -1326,7 +1305,6 @@ const messagingUpdateSendgridProvider = async ({providerId,name,enabled,apiKey,f
|
|
|
1326
1305
|
|
|
1327
1306
|
if (parseOutput) {
|
|
1328
1307
|
parse(response)
|
|
1329
|
-
success()
|
|
1330
1308
|
}
|
|
1331
1309
|
|
|
1332
1310
|
return response;
|
|
@@ -1413,7 +1391,6 @@ const messagingCreateSmtpProvider = async ({providerId,name,host,port,username,p
|
|
|
1413
1391
|
|
|
1414
1392
|
if (parseOutput) {
|
|
1415
1393
|
parse(response)
|
|
1416
|
-
success()
|
|
1417
1394
|
}
|
|
1418
1395
|
|
|
1419
1396
|
return response;
|
|
@@ -1497,7 +1474,6 @@ const messagingUpdateSmtpProvider = async ({providerId,name,host,port,username,p
|
|
|
1497
1474
|
|
|
1498
1475
|
if (parseOutput) {
|
|
1499
1476
|
parse(response)
|
|
1500
|
-
success()
|
|
1501
1477
|
}
|
|
1502
1478
|
|
|
1503
1479
|
return response;
|
|
@@ -1552,7 +1528,6 @@ const messagingCreateTelesignProvider = async ({providerId,name,from,customerId,
|
|
|
1552
1528
|
|
|
1553
1529
|
if (parseOutput) {
|
|
1554
1530
|
parse(response)
|
|
1555
|
-
success()
|
|
1556
1531
|
}
|
|
1557
1532
|
|
|
1558
1533
|
return response;
|
|
@@ -1604,7 +1579,6 @@ const messagingUpdateTelesignProvider = async ({providerId,name,enabled,customer
|
|
|
1604
1579
|
|
|
1605
1580
|
if (parseOutput) {
|
|
1606
1581
|
parse(response)
|
|
1607
|
-
success()
|
|
1608
1582
|
}
|
|
1609
1583
|
|
|
1610
1584
|
return response;
|
|
@@ -1659,7 +1633,6 @@ const messagingCreateTextmagicProvider = async ({providerId,name,from,username,a
|
|
|
1659
1633
|
|
|
1660
1634
|
if (parseOutput) {
|
|
1661
1635
|
parse(response)
|
|
1662
|
-
success()
|
|
1663
1636
|
}
|
|
1664
1637
|
|
|
1665
1638
|
return response;
|
|
@@ -1711,7 +1684,6 @@ const messagingUpdateTextmagicProvider = async ({providerId,name,enabled,usernam
|
|
|
1711
1684
|
|
|
1712
1685
|
if (parseOutput) {
|
|
1713
1686
|
parse(response)
|
|
1714
|
-
success()
|
|
1715
1687
|
}
|
|
1716
1688
|
|
|
1717
1689
|
return response;
|
|
@@ -1766,7 +1738,6 @@ const messagingCreateTwilioProvider = async ({providerId,name,from,accountSid,au
|
|
|
1766
1738
|
|
|
1767
1739
|
if (parseOutput) {
|
|
1768
1740
|
parse(response)
|
|
1769
|
-
success()
|
|
1770
1741
|
}
|
|
1771
1742
|
|
|
1772
1743
|
return response;
|
|
@@ -1818,7 +1789,6 @@ const messagingUpdateTwilioProvider = async ({providerId,name,enabled,accountSid
|
|
|
1818
1789
|
|
|
1819
1790
|
if (parseOutput) {
|
|
1820
1791
|
parse(response)
|
|
1821
|
-
success()
|
|
1822
1792
|
}
|
|
1823
1793
|
|
|
1824
1794
|
return response;
|
|
@@ -1873,7 +1843,6 @@ const messagingCreateVonageProvider = async ({providerId,name,from,apiKey,apiSec
|
|
|
1873
1843
|
|
|
1874
1844
|
if (parseOutput) {
|
|
1875
1845
|
parse(response)
|
|
1876
|
-
success()
|
|
1877
1846
|
}
|
|
1878
1847
|
|
|
1879
1848
|
return response;
|
|
@@ -1925,7 +1894,6 @@ const messagingUpdateVonageProvider = async ({providerId,name,enabled,apiKey,api
|
|
|
1925
1894
|
|
|
1926
1895
|
if (parseOutput) {
|
|
1927
1896
|
parse(response)
|
|
1928
|
-
success()
|
|
1929
1897
|
}
|
|
1930
1898
|
|
|
1931
1899
|
return response;
|
|
@@ -1960,7 +1928,6 @@ const messagingGetProvider = async ({providerId,parseOutput = true, overrideForC
|
|
|
1960
1928
|
showConsoleLink('messaging', 'getProvider', providerId);
|
|
1961
1929
|
} else {
|
|
1962
1930
|
parse(response)
|
|
1963
|
-
success()
|
|
1964
1931
|
}
|
|
1965
1932
|
}
|
|
1966
1933
|
|
|
@@ -1993,7 +1960,6 @@ const messagingDeleteProvider = async ({providerId,parseOutput = true, overrideF
|
|
|
1993
1960
|
|
|
1994
1961
|
if (parseOutput) {
|
|
1995
1962
|
parse(response)
|
|
1996
|
-
success()
|
|
1997
1963
|
}
|
|
1998
1964
|
|
|
1999
1965
|
return response;
|
|
@@ -2029,7 +1995,6 @@ const messagingListProviderLogs = async ({providerId,queries,parseOutput = true,
|
|
|
2029
1995
|
|
|
2030
1996
|
if (parseOutput) {
|
|
2031
1997
|
parse(response)
|
|
2032
|
-
success()
|
|
2033
1998
|
}
|
|
2034
1999
|
|
|
2035
2000
|
return response;
|
|
@@ -2065,7 +2030,6 @@ const messagingListSubscriberLogs = async ({subscriberId,queries,parseOutput = t
|
|
|
2065
2030
|
|
|
2066
2031
|
if (parseOutput) {
|
|
2067
2032
|
parse(response)
|
|
2068
|
-
success()
|
|
2069
2033
|
}
|
|
2070
2034
|
|
|
2071
2035
|
return response;
|
|
@@ -2107,7 +2071,6 @@ const messagingListTopics = async ({queries,search,parseOutput = true, overrideF
|
|
|
2107
2071
|
showConsoleLink('messaging', 'listTopics');
|
|
2108
2072
|
} else {
|
|
2109
2073
|
parse(response)
|
|
2110
|
-
success()
|
|
2111
2074
|
}
|
|
2112
2075
|
}
|
|
2113
2076
|
|
|
@@ -2152,7 +2115,6 @@ const messagingCreateTopic = async ({topicId,name,subscribe,parseOutput = true,
|
|
|
2152
2115
|
|
|
2153
2116
|
if (parseOutput) {
|
|
2154
2117
|
parse(response)
|
|
2155
|
-
success()
|
|
2156
2118
|
}
|
|
2157
2119
|
|
|
2158
2120
|
return response;
|
|
@@ -2187,7 +2149,6 @@ const messagingGetTopic = async ({topicId,parseOutput = true, overrideForCli = f
|
|
|
2187
2149
|
showConsoleLink('messaging', 'getTopic', topicId);
|
|
2188
2150
|
} else {
|
|
2189
2151
|
parse(response)
|
|
2190
|
-
success()
|
|
2191
2152
|
}
|
|
2192
2153
|
}
|
|
2193
2154
|
|
|
@@ -2229,7 +2190,6 @@ const messagingUpdateTopic = async ({topicId,name,subscribe,parseOutput = true,
|
|
|
2229
2190
|
|
|
2230
2191
|
if (parseOutput) {
|
|
2231
2192
|
parse(response)
|
|
2232
|
-
success()
|
|
2233
2193
|
}
|
|
2234
2194
|
|
|
2235
2195
|
return response;
|
|
@@ -2261,7 +2221,6 @@ const messagingDeleteTopic = async ({topicId,parseOutput = true, overrideForCli
|
|
|
2261
2221
|
|
|
2262
2222
|
if (parseOutput) {
|
|
2263
2223
|
parse(response)
|
|
2264
|
-
success()
|
|
2265
2224
|
}
|
|
2266
2225
|
|
|
2267
2226
|
return response;
|
|
@@ -2297,7 +2256,6 @@ const messagingListTopicLogs = async ({topicId,queries,parseOutput = true, overr
|
|
|
2297
2256
|
|
|
2298
2257
|
if (parseOutput) {
|
|
2299
2258
|
parse(response)
|
|
2300
|
-
success()
|
|
2301
2259
|
}
|
|
2302
2260
|
|
|
2303
2261
|
return response;
|
|
@@ -2340,7 +2298,6 @@ const messagingListSubscribers = async ({topicId,queries,search,parseOutput = tr
|
|
|
2340
2298
|
showConsoleLink('messaging', 'listSubscribers', topicId);
|
|
2341
2299
|
} else {
|
|
2342
2300
|
parse(response)
|
|
2343
|
-
success()
|
|
2344
2301
|
}
|
|
2345
2302
|
}
|
|
2346
2303
|
|
|
@@ -2381,7 +2338,6 @@ const messagingCreateSubscriber = async ({topicId,subscriberId,targetId,parseOut
|
|
|
2381
2338
|
|
|
2382
2339
|
if (parseOutput) {
|
|
2383
2340
|
parse(response)
|
|
2384
|
-
success()
|
|
2385
2341
|
}
|
|
2386
2342
|
|
|
2387
2343
|
return response;
|
|
@@ -2414,7 +2370,6 @@ const messagingGetSubscriber = async ({topicId,subscriberId,parseOutput = true,
|
|
|
2414
2370
|
|
|
2415
2371
|
if (parseOutput) {
|
|
2416
2372
|
parse(response)
|
|
2417
|
-
success()
|
|
2418
2373
|
}
|
|
2419
2374
|
|
|
2420
2375
|
return response;
|
|
@@ -2447,7 +2402,6 @@ const messagingDeleteSubscriber = async ({topicId,subscriberId,parseOutput = tru
|
|
|
2447
2402
|
|
|
2448
2403
|
if (parseOutput) {
|
|
2449
2404
|
parse(response)
|
|
2450
|
-
success()
|
|
2451
2405
|
}
|
|
2452
2406
|
|
|
2453
2407
|
return response;
|
|
@@ -35,7 +35,7 @@ function convertReadStreamToReadableStream(readStream) {
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
const migrations = new Command("migrations").description(commandDescriptions['migrations']).configureHelp({
|
|
38
|
+
const migrations = new Command("migrations").description(commandDescriptions['migrations'] ?? '').configureHelp({
|
|
39
39
|
helpWidth: process.stdout.columns || 80
|
|
40
40
|
})
|
|
41
41
|
|
|
@@ -71,7 +71,6 @@ const migrationsList = async ({queries,search,parseOutput = true, overrideForCli
|
|
|
71
71
|
|
|
72
72
|
if (parseOutput) {
|
|
73
73
|
parse(response)
|
|
74
|
-
success()
|
|
75
74
|
}
|
|
76
75
|
|
|
77
76
|
return response;
|
|
@@ -119,7 +118,6 @@ const migrationsCreateAppwriteMigration = async ({resources,endpoint,projectId,a
|
|
|
119
118
|
|
|
120
119
|
if (parseOutput) {
|
|
121
120
|
parse(response)
|
|
122
|
-
success()
|
|
123
121
|
}
|
|
124
122
|
|
|
125
123
|
return response;
|
|
@@ -166,7 +164,6 @@ const migrationsGetAppwriteReport = async ({resources,endpoint,projectID,key,par
|
|
|
166
164
|
|
|
167
165
|
if (parseOutput) {
|
|
168
166
|
parse(response)
|
|
169
|
-
success()
|
|
170
167
|
}
|
|
171
168
|
|
|
172
169
|
return response;
|
|
@@ -206,7 +203,6 @@ const migrationsCreateFirebaseMigration = async ({resources,serviceAccount,parse
|
|
|
206
203
|
|
|
207
204
|
if (parseOutput) {
|
|
208
205
|
parse(response)
|
|
209
|
-
success()
|
|
210
206
|
}
|
|
211
207
|
|
|
212
208
|
return response;
|
|
@@ -237,7 +233,6 @@ const migrationsDeleteFirebaseAuth = async ({parseOutput = true, overrideForCli
|
|
|
237
233
|
|
|
238
234
|
if (parseOutput) {
|
|
239
235
|
parse(response)
|
|
240
|
-
success()
|
|
241
236
|
}
|
|
242
237
|
|
|
243
238
|
return response;
|
|
@@ -277,7 +272,6 @@ const migrationsCreateFirebaseOAuthMigration = async ({resources,projectId,parse
|
|
|
277
272
|
|
|
278
273
|
if (parseOutput) {
|
|
279
274
|
parse(response)
|
|
280
|
-
success()
|
|
281
275
|
}
|
|
282
276
|
|
|
283
277
|
return response;
|
|
@@ -308,7 +302,6 @@ const migrationsListFirebaseProjects = async ({parseOutput = true, overrideForCl
|
|
|
308
302
|
|
|
309
303
|
if (parseOutput) {
|
|
310
304
|
parse(response)
|
|
311
|
-
success()
|
|
312
305
|
}
|
|
313
306
|
|
|
314
307
|
return response;
|
|
@@ -347,7 +340,6 @@ const migrationsGetFirebaseReport = async ({resources,serviceAccount,parseOutput
|
|
|
347
340
|
|
|
348
341
|
if (parseOutput) {
|
|
349
342
|
parse(response)
|
|
350
|
-
success()
|
|
351
343
|
}
|
|
352
344
|
|
|
353
345
|
return response;
|
|
@@ -386,7 +378,6 @@ const migrationsGetFirebaseReportOAuth = async ({resources,projectId,parseOutput
|
|
|
386
378
|
|
|
387
379
|
if (parseOutput) {
|
|
388
380
|
parse(response)
|
|
389
|
-
success()
|
|
390
381
|
}
|
|
391
382
|
|
|
392
383
|
return response;
|
|
@@ -450,7 +441,6 @@ const migrationsCreateNHostMigration = async ({resources,subdomain,region,adminS
|
|
|
450
441
|
|
|
451
442
|
if (parseOutput) {
|
|
452
443
|
parse(response)
|
|
453
|
-
success()
|
|
454
444
|
}
|
|
455
445
|
|
|
456
446
|
return response;
|
|
@@ -513,7 +503,6 @@ const migrationsGetNHostReport = async ({resources,subdomain,region,adminSecret,
|
|
|
513
503
|
|
|
514
504
|
if (parseOutput) {
|
|
515
505
|
parse(response)
|
|
516
|
-
success()
|
|
517
506
|
}
|
|
518
507
|
|
|
519
508
|
return response;
|
|
@@ -573,7 +562,6 @@ const migrationsCreateSupabaseMigration = async ({resources,endpoint,apiKey,data
|
|
|
573
562
|
|
|
574
563
|
if (parseOutput) {
|
|
575
564
|
parse(response)
|
|
576
|
-
success()
|
|
577
565
|
}
|
|
578
566
|
|
|
579
567
|
return response;
|
|
@@ -632,7 +620,6 @@ const migrationsGetSupabaseReport = async ({resources,endpoint,apiKey,databaseHo
|
|
|
632
620
|
|
|
633
621
|
if (parseOutput) {
|
|
634
622
|
parse(response)
|
|
635
|
-
success()
|
|
636
623
|
}
|
|
637
624
|
|
|
638
625
|
return response;
|
|
@@ -664,7 +651,6 @@ const migrationsGet = async ({migrationId,parseOutput = true, overrideForCli = f
|
|
|
664
651
|
|
|
665
652
|
if (parseOutput) {
|
|
666
653
|
parse(response)
|
|
667
|
-
success()
|
|
668
654
|
}
|
|
669
655
|
|
|
670
656
|
return response;
|
|
@@ -696,7 +682,6 @@ const migrationsRetry = async ({migrationId,parseOutput = true, overrideForCli =
|
|
|
696
682
|
|
|
697
683
|
if (parseOutput) {
|
|
698
684
|
parse(response)
|
|
699
|
-
success()
|
|
700
685
|
}
|
|
701
686
|
|
|
702
687
|
return response;
|
|
@@ -728,7 +713,6 @@ const migrationsDelete = async ({migrationId,parseOutput = true, overrideForCli
|
|
|
728
713
|
|
|
729
714
|
if (parseOutput) {
|
|
730
715
|
parse(response)
|
|
731
|
-
success()
|
|
732
716
|
}
|
|
733
717
|
|
|
734
718
|
return response;
|
package/lib/commands/project.js
CHANGED
|
@@ -35,7 +35,7 @@ function convertReadStreamToReadableStream(readStream) {
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
const project = new Command("project").description(commandDescriptions['project']).configureHelp({
|
|
38
|
+
const project = new Command("project").description(commandDescriptions['project'] ?? '').configureHelp({
|
|
39
39
|
helpWidth: process.stdout.columns || 80
|
|
40
40
|
})
|
|
41
41
|
|
|
@@ -75,7 +75,6 @@ const projectGetUsage = async ({startDate,endDate,period,parseOutput = true, ove
|
|
|
75
75
|
|
|
76
76
|
if (parseOutput) {
|
|
77
77
|
parse(response)
|
|
78
|
-
success()
|
|
79
78
|
}
|
|
80
79
|
|
|
81
80
|
return response;
|
|
@@ -106,7 +105,6 @@ const projectListVariables = async ({parseOutput = true, overrideForCli = false,
|
|
|
106
105
|
|
|
107
106
|
if (parseOutput) {
|
|
108
107
|
parse(response)
|
|
109
|
-
success()
|
|
110
108
|
}
|
|
111
109
|
|
|
112
110
|
return response;
|
|
@@ -145,7 +143,6 @@ const projectCreateVariable = async ({key,value,parseOutput = true, overrideForC
|
|
|
145
143
|
|
|
146
144
|
if (parseOutput) {
|
|
147
145
|
parse(response)
|
|
148
|
-
success()
|
|
149
146
|
}
|
|
150
147
|
|
|
151
148
|
return response;
|
|
@@ -177,7 +174,6 @@ const projectGetVariable = async ({variableId,parseOutput = true, overrideForCli
|
|
|
177
174
|
|
|
178
175
|
if (parseOutput) {
|
|
179
176
|
parse(response)
|
|
180
|
-
success()
|
|
181
177
|
}
|
|
182
178
|
|
|
183
179
|
return response;
|
|
@@ -217,7 +213,6 @@ const projectUpdateVariable = async ({variableId,key,value,parseOutput = true, o
|
|
|
217
213
|
|
|
218
214
|
if (parseOutput) {
|
|
219
215
|
parse(response)
|
|
220
|
-
success()
|
|
221
216
|
}
|
|
222
217
|
|
|
223
218
|
return response;
|
|
@@ -249,7 +244,6 @@ const projectDeleteVariable = async ({variableId,parseOutput = true, overrideFor
|
|
|
249
244
|
|
|
250
245
|
if (parseOutput) {
|
|
251
246
|
parse(response)
|
|
252
|
-
success()
|
|
253
247
|
}
|
|
254
248
|
|
|
255
249
|
return response;
|