Skip to content

Commit

Permalink
Update command_line.rs
Browse files Browse the repository at this point in the history
+ fix typo
+ add todo
  • Loading branch information
Urpagin authored Nov 6, 2024
1 parent 066835b commit 6defa96
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/commands/command_line.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ use tokio::io::{AsyncBufReadExt, BufReader};
use crate::{consts, fs_manager, player};

// Asynchronously handles user input. It never returns

// TODO: IMPLEMENT COMMANDS SEPARATELY FROM THIS FUNCTION, otherwise the code will just be as good as a dumpster fire
// TODO: use the 'Command Pattern' and command handlers
pub async fn handle_input() -> ! {
let mut reader = BufReader::new(tokio::io::stdin());
let mut buffer = String::new();
Expand Down Expand Up @@ -48,7 +51,7 @@ pub async fn handle_input() -> ! {
) {
Ok(_) => format!("Made {} a server operator.", element),
Err(e) => format!(
"Failed to made {} as a server operator, error: {} ",
"Failed to make {} as a server operator, error: {} ",
element, e
),
};
Expand Down

0 comments on commit 6defa96

Please sign in to comment.