mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
feat(deltachat-repl): add fetch command to test background_fetch()
This commit is contained in:
@@ -355,6 +355,7 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu
|
|||||||
configure\n\
|
configure\n\
|
||||||
connect\n\
|
connect\n\
|
||||||
disconnect\n\
|
disconnect\n\
|
||||||
|
fetch\n\
|
||||||
connectivity\n\
|
connectivity\n\
|
||||||
maybenetwork\n\
|
maybenetwork\n\
|
||||||
housekeeping\n\
|
housekeeping\n\
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ const IMEX_COMMANDS: [&str; 13] = [
|
|||||||
"stop",
|
"stop",
|
||||||
];
|
];
|
||||||
|
|
||||||
const DB_COMMANDS: [&str; 10] = [
|
const DB_COMMANDS: [&str; 11] = [
|
||||||
"info",
|
"info",
|
||||||
"set",
|
"set",
|
||||||
"get",
|
"get",
|
||||||
@@ -176,6 +176,7 @@ const DB_COMMANDS: [&str; 10] = [
|
|||||||
"configure",
|
"configure",
|
||||||
"connect",
|
"connect",
|
||||||
"disconnect",
|
"disconnect",
|
||||||
|
"fetch",
|
||||||
"connectivity",
|
"connectivity",
|
||||||
"maybenetwork",
|
"maybenetwork",
|
||||||
"housekeeping",
|
"housekeeping",
|
||||||
@@ -417,6 +418,9 @@ async fn handle_cmd(
|
|||||||
"disconnect" => {
|
"disconnect" => {
|
||||||
ctx.stop_io().await;
|
ctx.stop_io().await;
|
||||||
}
|
}
|
||||||
|
"fetch" => {
|
||||||
|
ctx.background_fetch().await?;
|
||||||
|
}
|
||||||
"configure" => {
|
"configure" => {
|
||||||
ctx.configure().await?;
|
ctx.configure().await?;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user