From b35231363fcb76c8f53be0ed582b36a610bd6f06 Mon Sep 17 00:00:00 2001 From: spencerwooo Date: Sat, 2 Dec 2023 17:44:52 +0800 Subject: [PATCH] bump version, minor fmts --- Cargo.toml | 2 +- src/main.rs | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 099a4d9..d847ecf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bitsrun" description = "A headless login and logout CLI app for 10.0.0.55 at BIT" -version = "0.2.0" +version = "0.2.1" edition = "2021" license = "MIT" homepage = "https://github.com/spencerwooo/bitsrun-rs" diff --git a/src/main.rs b/src/main.rs index 2be3064..aab92a6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,15 +6,15 @@ mod xencode; use anyhow::Context; use anyhow::Result; -use cli::Arguments; -use cli::Commands; -use client::get_login_state; -use client::SrunClient; +use clap::Parser; use owo_colors::OwoColorize; use owo_colors::Stream::Stderr; use owo_colors::Stream::Stdout; -use clap::Parser; +use cli::Arguments; +use cli::Commands; +use client::get_login_state; +use client::SrunClient; use tables::print_config_paths; use tables::print_login_state; @@ -83,7 +83,7 @@ async fn cli() -> Result<()> { &client_args.username, &client_args.password, &client_args.config, - !matches!(args.command, Some(Commands::Logout(_))), + matches!(args.command, Some(Commands::Login(_))), ) .with_context(|| "unable to parse user credentials")?;