Skip to content

Commit

Permalink
log error
Browse files Browse the repository at this point in the history
  • Loading branch information
j03-dev committed Oct 17, 2023
1 parent d35d0b8 commit 895b23e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::core::{page_not_found, server_panic, webhook_core, webhook_verify};
use crate::core::app_state::AppState;
use crate::models::User;

#[derive(Clone)]
#[derive(Debug, Clone)]
struct Args {
option: String,
_value: String,
Expand Down Expand Up @@ -80,11 +80,12 @@ fn help() {

pub async fn command() {
if let Some(args) = args_parser() {
let option = args.get_option();
match option.as_str() {
"--runserver" => run_server().await,
"--migrate" => migrate().await,
_ => help()
}
println!("{args:?}");
// let option = args.get_option();
// match option.as_str() {
// "--runserver" => run_server().await,
// "--migrate" => migrate().await,
// _ => help()
// }
}
}

0 comments on commit 895b23e

Please sign in to comment.