Skip to content

Commit 9197ef0

Browse files
fix: Update repl help and autocomplete to match implementation (#6978)
1 parent 7e4d4cf commit 9197ef0

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

deltachat-repl/src/cmdline.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,6 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu
333333
_ => println!(
334334
"==========================Database commands==\n\
335335
info\n\
336-
open <file to open or create>\n\
337-
close\n\
338336
set <configuration-key> [<value>]\n\
339337
get <configuration-key>\n\
340338
oauth2\n\
@@ -349,6 +347,8 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu
349347
==============================Chat commands==\n\
350348
listchats [<query>]\n\
351349
listarchived\n\
350+
start-realtime <msg-id>\n\
351+
send-realtime <msg-id> <data>\n\
352352
chat [<chat-id>|0]\n\
353353
createchat <contact-id>\n\
354354
creategroup <name>\n\
@@ -364,6 +364,7 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu
364364
dellocations\n\
365365
getlocations [<contact-id>]\n\
366366
send <text>\n\
367+
sendempty\n\
367368
sendimage <file> [<text>]\n\
368369
sendsticker <file> [<text>]\n\
369370
sendfile <file> [<text>]\n\
@@ -382,7 +383,7 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu
382383
unmute <chat-id>\n\
383384
delchat <chat-id>\n\
384385
accept <chat-id>\n\
385-
decline <chat-id>\n\
386+
blockchat <chat-id>\n\
386387
===========================Message commands==\n\
387388
listmsgs <query>\n\
388389
msginfo <msg-id>\n\
@@ -399,7 +400,6 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu
399400
addcontact [<name>] <addr>\n\
400401
contactinfo <contact-id>\n\
401402
delcontact <contact-id>\n\
402-
cleanupcontacts\n\
403403
block <contact-id>\n\
404404
unblock <contact-id>\n\
405405
listblocked\n\

deltachat-repl/src/main.rs

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,11 @@ const DB_COMMANDS: [&str; 11] = [
179179
"housekeeping",
180180
];
181181

182-
const CHAT_COMMANDS: [&str; 36] = [
182+
const CHAT_COMMANDS: [&str; 39] = [
183183
"listchats",
184184
"listarchived",
185+
"start-realtime",
186+
"send-realtime",
185187
"chat",
186188
"createchat",
187189
"creategroup",
@@ -197,60 +199,63 @@ const CHAT_COMMANDS: [&str; 36] = [
197199
"dellocations",
198200
"getlocations",
199201
"send",
202+
"sendempty",
200203
"sendimage",
204+
"sendsticker",
201205
"sendfile",
202206
"sendhtml",
203207
"sendsyncmsg",
204208
"sendupdate",
205209
"videochat",
206210
"draft",
211+
"devicemsg",
207212
"listmedia",
208213
"archive",
209214
"unarchive",
210215
"pin",
211216
"unpin",
212217
"mute",
213218
"unmute",
214-
"protect",
215-
"unprotect",
216219
"delchat",
217220
"accept",
218221
"blockchat",
219222
];
220-
const MESSAGE_COMMANDS: [&str; 9] = [
223+
const MESSAGE_COMMANDS: [&str; 10] = [
221224
"listmsgs",
222225
"msginfo",
226+
"download",
227+
"html",
223228
"listfresh",
224229
"forward",
225230
"resend",
226231
"markseen",
227232
"delmsg",
228-
"download",
229233
"react",
230234
];
231-
const CONTACT_COMMANDS: [&str; 8] = [
235+
const CONTACT_COMMANDS: [&str; 7] = [
232236
"listcontacts",
233237
"addcontact",
234238
"contactinfo",
235239
"delcontact",
236-
"cleanupcontacts",
237240
"block",
238241
"unblock",
239242
"listblocked",
240243
];
241-
const MISC_COMMANDS: [&str; 12] = [
244+
const MISC_COMMANDS: [&str; 14] = [
242245
"getqr",
243246
"getqrsvg",
244247
"getbadqr",
245248
"checkqr",
246249
"joinqr",
250+
"setqr",
247251
"createqrsvg",
252+
"providerinfo",
248253
"fileinfo",
254+
"estimatedeletion",
249255
"clear",
250256
"exit",
251257
"quit",
252258
"help",
253-
"estimatedeletion",
254259
];
255260

256261
impl Hinter for DcHelper {

0 commit comments

Comments
 (0)