Skip to content

Commit

Permalink
feat: init logger (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
hey2022 authored Dec 17, 2024
1 parent d00c13b commit ac7aef5
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 1 deletion.
71 changes: 70 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ chrono = "0.4.39"
clap = { version = "4.5.23", features = ["derive"] }
colored = "2.1.0"
confy = "0.6.1"
env_logger = "0.11.5"
futures = "0.3.31"
image = { version = "0.25.5", default-features = false, features = ["rayon", "png"]}
itertools = "0.13.0"
log = "0.4.22"
md5 = "0.7.0"
reqwest = { version = "0.12.9", default-features = false, features = ["json", "cookies", "rustls-tls"] }
rpassword = "7.3.1"
Expand Down
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ mod gpa;
mod semester;
mod subject;

use log::info;
use clap::{Parser, Subcommand};
use client::LoginError;
use colored::Colorize;
Expand Down Expand Up @@ -36,6 +37,8 @@ enum Commands {

#[tokio::main]
async fn main() {
env_logger::init();

let cli = Cli::parse();
let mut config;
if let Some(command) = &cli.command {
Expand Down

0 comments on commit ac7aef5

Please sign in to comment.