Move functions to EuphVault and add EuphRoomVault
This commit moves all euph_* functions from Vault to EuphVault. The previous EuphVault is now called EuphRoomVault and re-exports all room-based functions from the EuphVault. It also implements MsgStore.
This commit is contained in:
parent
ff56bb2678
commit
da2c3d86f5
9 changed files with 148 additions and 163 deletions
|
|
@ -143,7 +143,7 @@ async fn main() -> anyhow::Result<()> {
|
|||
|
||||
match args.command.unwrap_or_default() {
|
||||
Command::Run => run(config, &vault, args.measure_widths).await?,
|
||||
Command::Export(args) => export::export(&vault, args).await?,
|
||||
Command::Export(args) => export::export(&vault.euph(), args).await?,
|
||||
Command::Gc => {
|
||||
println!("Cleaning up and compacting vault");
|
||||
println!("This may take a while...");
|
||||
|
|
@ -151,7 +151,7 @@ async fn main() -> anyhow::Result<()> {
|
|||
}
|
||||
Command::ClearCookies => {
|
||||
println!("Clearing cookies");
|
||||
vault.euph_set_cookies(CookieJar::new());
|
||||
vault.euph().set_cookies(CookieJar::new());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue