Add info output that login command saved the session

This commit is contained in:
bytedream 2023-07-13 14:09:18 +02:00
parent 6b76887978
commit 8490263e84

View file

@ -4,6 +4,7 @@ use crate::Execute;
use anyhow::Result;
use clap::Parser;
use crunchyroll_rs::crunchyroll::SessionToken;
use log::info;
#[derive(Debug, clap::Parser)]
#[clap(about = "Save your login credentials persistent on disk")]
@ -24,7 +25,11 @@ impl Execute for Login {
SessionToken::Anonymous => Auth::Anonymous,
};
ctx.config.auth = Some(auth);
Ok(ctx.config.write()?)
ctx.config.write()?;
info!("Saved login");
Ok(())
}
}