railwayapp 5.30.3

Interact with Railway via CLI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::*;

/// Logout of your Railway account
#[derive(Parser)]
pub struct Args {}

pub async fn command(_args: Args) -> Result<()> {
    let mut configs = Configs::new()?;
    configs.reset()?;
    // Logout owns the credentials it is erasing: an ordinary `write` would
    // re-adopt whatever is still on disk and leave the user logged in.
    configs.write_credentials()?;
    println!("Logged out successfully");
    Ok(())
}