mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Add info output that login command saved the session
This commit is contained in:
parent
6b76887978
commit
8490263e84
1 changed files with 6 additions and 1 deletions
|
|
@ -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(())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue