From fdff6a0f8e0fe45d4d645de4569ca205d35e50b3 Mon Sep 17 00:00:00 2001 From: rasul Date: Sat, 4 Apr 2020 15:11:31 -0500 Subject: [PATCH] Remove the actions module, and move commands into the Command module. --- src/actions/dig.rs | 127 ---------------------------- src/actions/help.rs | 11 --- src/actions/look.rs | 55 ------------- src/actions/mod.rs | 13 --- src/actions/move_room.rs | 84 ------------------- src/actions/save.rs | 18 ---- src/actions/say.rs | 30 ------- src/command/command.rs | 23 +++--- src/command/dispatch/dig.rs | 128 +++++++++++++++++++++++++++++ src/command/dispatch/help.rs | 13 +++ src/command/dispatch/look.rs | 57 +++++++++++++ src/command/dispatch/mod.rs | 7 ++ src/command/dispatch/move_room.rs | 85 +++++++++++++++++++ src/command/{ => dispatch}/quit.rs | 0 src/command/dispatch/save.rs | 20 +++++ src/command/dispatch/say.rs | 32 ++++++++ src/command/mod.rs | 3 +- src/game/state/login.rs | 5 +- src/lib.rs | 1 - src/main.rs | 1 - 20 files changed, 356 insertions(+), 357 deletions(-) delete mode 100644 src/actions/dig.rs delete mode 100644 src/actions/help.rs delete mode 100644 src/actions/look.rs delete mode 100644 src/actions/mod.rs delete mode 100644 src/actions/move_room.rs delete mode 100644 src/actions/save.rs delete mode 100644 src/actions/say.rs create mode 100644 src/command/dispatch/dig.rs create mode 100644 src/command/dispatch/help.rs create mode 100644 src/command/dispatch/look.rs create mode 100644 src/command/dispatch/mod.rs create mode 100644 src/command/dispatch/move_room.rs rename src/command/{ => dispatch}/quit.rs (100%) create mode 100644 src/command/dispatch/save.rs create mode 100644 src/command/dispatch/say.rs diff --git a/src/actions/dig.rs b/src/actions/dig.rs deleted file mode 100644 index bac1dcb..0000000 --- a/src/actions/dig.rs +++ /dev/null @@ -1,127 +0,0 @@ -use std::collections::HashMap; -use std::str::FromStr; - -use mio::Token; - -use crate::actions::look; -use crate::command::Command; -use crate::database::Db; -use crate::queue::SendQueue; -use crate::world::{Direction, Exit, Room}; -use crate::{try_option_send_error, try_send_error}; - -/// Look at the room. Provide room name, description, and exits. -pub fn dig(command: &Command, args: String, token: Token, db: &mut Db) -> SendQueue { - let mut send_queue = SendQueue::new(); - - // find the player - let mut player = try_option_send_error!(token, db.get_connected_player(token)); - - // get the direction to dig - let direction = match Direction::from_str(&args) { - Ok(d) => d, - Err(e) => { - send_queue.push(token, format!("{}", e), true); - return send_queue; - } - }; - - // get starting room - let mut start_room = try_option_send_error!(token, db.load_room(player.location)); - - // make sure exit doesn't already exist - if start_room.exits.contains_key(&direction) { - send_queue.push(token, "Exit already exists", true); - return send_queue; - } - - // get starting zone - let mut zone = try_option_send_error!(token, db.load_zone(start_room.zone)); - - let new_room_id = try_send_error!(token, db.new_area_id()); - - // create a new, empty room - let mut new_room = Room { - id: new_room_id, - zone: start_room.zone, - name: format!("New Room {}", new_room_id), - description: Vec::new(), - users_visible: true, - exits: HashMap::new(), - }; - - // add exit from start room to new room - let _ = start_room.exits.insert( - direction, - Exit { - target: new_room.id, - direction, - }, - ); - - // add exit from new room to start room - let _ = new_room.exits.insert( - direction.opposite(), - Exit { - target: start_room.id, - direction: direction.opposite(), - }, - ); - - // add new room to zone - let _ = zone.areas.insert(new_room.id); - - // save the new room - if db.save_room(&new_room).is_ok() { - send_queue.push(token, "New room saved\n", false); - } else { - send_queue.push(token, "Unable to save new room", true); - return send_queue; - } - - // save the start room - if db.save_room(&start_room).is_ok() { - send_queue.push(token, "Start room saved\n", false); - } else { - send_queue.push(token, "Unable to save start room", true); - return send_queue; - } - - // save the zone - if db.save_zone(&zone).is_ok() { - send_queue.push(token, "Zone saved\n", false); - } else { - send_queue.push(token, "Unable to save zone", true); - return send_queue; - } - - // move and save the player - player.location = new_room.id; - if db.save_player(&player).is_ok() { - if db.save_connected_player(token, &player).is_ok() { - send_queue.push(token, format!("You dig {}.\n\n", direction.long()), false); - } else { - send_queue.push(token, "Unable to save connected player", true); - } - } else { - send_queue.push(token, "Unable to save player", true); - return send_queue; - } - - // inform people about what just took place - for (neighbor_token, _) in - try_send_error!(token, db.find_connected_players_by_location(start_room.id)) - { - if neighbor_token != token { - send_queue.push( - neighbor_token, - format!("{} digs {}.", player.name, direction.long()), - true, - ); - } - } - - send_queue.append(&mut look(&command, args, token, db)); - - send_queue -} diff --git a/src/actions/help.rs b/src/actions/help.rs deleted file mode 100644 index 2f250a9..0000000 --- a/src/actions/help.rs +++ /dev/null @@ -1,11 +0,0 @@ -use mio::Token; - -use crate::command::Command; -use crate::database::Db; -use crate::queue::SendQueue; - -pub fn help(command: &Command, args: String, token: Token, db: &mut Db) -> SendQueue { - let mut send_queue = SendQueue::new(); - - send_queue -} diff --git a/src/actions/look.rs b/src/actions/look.rs deleted file mode 100644 index 534695b..0000000 --- a/src/actions/look.rs +++ /dev/null @@ -1,55 +0,0 @@ -use colored::Colorize; -use mio::Token; - -use crate::command::Command; -use crate::database::Db; -use crate::queue::SendQueue; -use crate::{try_option_send_error, try_send_error}; - -/// Look at the room. Provide room name, description, and exits. -pub fn look(_: &Command, _: String, token: Token, db: &mut Db) -> SendQueue { - let mut send_queue = SendQueue::new(); - - // get the player - let player = try_option_send_error!(token, db.get_connected_player(token)); - - // get the room - let room = try_option_send_error!(token, db.load_room(player.location)); - - // room name - send_queue.push(token, format!("{}\n", room.name.cyan().to_string()), false); - - // room description - send_queue.push( - token, - format!("{}\n", { - let mut s = room.description.join("\n"); - s.push_str("\n"); - s - }), - false, - ); - - // exits - send_queue.push( - token, - format!("[ obvious exits: {} ]\n", room.exit_string()) - .cyan() - .to_string(), - false, - ); - - // other people in room - for (neighbor_token, neighbor_player) in try_send_error!( - token, - db.find_connected_players_by_location(player.location) - ) { - if neighbor_token != token { - send_queue.push(token, format!("{} is here", neighbor_player.name), false); - } - } - - send_queue.push(token, "", true); - - send_queue -} diff --git a/src/actions/mod.rs b/src/actions/mod.rs deleted file mode 100644 index 859ee30..0000000 --- a/src/actions/mod.rs +++ /dev/null @@ -1,13 +0,0 @@ -mod dig; -mod help; -mod look; -mod move_room; -mod save; -mod say; - -pub use dig::dig; -pub use help::help; -pub use look::look; -pub use move_room::move_room; -pub use save::save; -pub use say::say; diff --git a/src/actions/move_room.rs b/src/actions/move_room.rs deleted file mode 100644 index 386a42b..0000000 --- a/src/actions/move_room.rs +++ /dev/null @@ -1,84 +0,0 @@ -use log::warn; -use mio::Token; - -use crate::actions::look; -use crate::command::Command; -use crate::database::Db; -use crate::queue::SendQueue; -use crate::world::*; -use crate::{try_option_send_error, try_send_error}; - -pub fn move_room(command: &Command, _args: String, token: Token, db: &mut Db) -> SendQueue { - let mut send_queue = SendQueue::new(); - - let direction: Direction = match command { - Command::N | Command::North => Direction::North, - Command::S | Command::South => Direction::South, - Command::E | Command::East => Direction::East, - Command::W | Command::West => Direction::West, - Command::U | Command::Up => Direction::Up, - Command::D | Command::Down => Direction::Down, - _ => { - warn!("Can't figure out direction: {:?}", command); - return send_queue; - } - }; - - // find the player - let mut player = try_option_send_error!(token, db.get_connected_player(token)); - - // get starting room - let start_room = try_option_send_error!(token, db.load_room(player.location)); - - // get the exit - let exit = if let Some(exit) = start_room.exits.get(&direction) { - exit - } else { - send_queue.push(token, "You can't go that way.", true); - return send_queue; - }; - - // get the target room - let target_room = try_option_send_error!(token, db.load_room(exit.target)); - - // move and save the player - player.location = target_room.id; - let _ = try_send_error!(token, db.save_player(&player)); - let _ = try_send_error!(token, db.save_connected_player(token, &player)); - send_queue.push(token, format!("You leave {}.\n\n", direction.long()), false); - - // tell people about leaving - for (neighbor_token, _) in - try_send_error!(token, db.find_connected_players_by_location(start_room.id)) - { - if neighbor_token != token { - send_queue.push( - neighbor_token, - format!("{} leaves {}.", player.name, direction.long()), - true, - ); - } - } - - // tell people about entering - for (neighbor_token, _) in - try_send_error!(token, db.find_connected_players_by_location(target_room.id)) - { - if neighbor_token != token { - send_queue.push( - neighbor_token, - format!( - "{} arrives from the {}.", - player.name, - direction.opposite().long() - ), - true, - ); - } - } - - // look around - send_queue.append(&mut look(&command, String::new(), token, db)); - - send_queue -} diff --git a/src/actions/save.rs b/src/actions/save.rs deleted file mode 100644 index f0c41e0..0000000 --- a/src/actions/save.rs +++ /dev/null @@ -1,18 +0,0 @@ -use mio::Token; - -use crate::command::Command; -use crate::database::Db; -use crate::queue::SendQueue; -use crate::{try_option_send_error, try_send_error}; - -/// Save the player information to disk. -pub fn save(_: &Command, _: String, token: Token, db: &mut Db) -> SendQueue { - let mut send_queue = SendQueue::new(); - - let player = try_option_send_error!(token, db.get_connected_player(token)); - let _ = try_send_error!(token, db.save_player(&player)); - let _ = try_send_error!(token, db.save_connected_player(token, &player)); - - send_queue.push(token, "Ok", true); - send_queue -} diff --git a/src/actions/say.rs b/src/actions/say.rs deleted file mode 100644 index 9092cb8..0000000 --- a/src/actions/say.rs +++ /dev/null @@ -1,30 +0,0 @@ -use mio::Token; - -use crate::command::Command; -use crate::database::Db; -use crate::queue::SendQueue; -use crate::{try_option_send_error, try_send_error}; - -/// Say something to anyone in the room. -pub fn say(_: &Command, args: String, token: Token, db: &mut Db) -> SendQueue { - let mut send_queue = SendQueue::new(); - - let player = try_option_send_error!(token, db.get_connected_player(token)); - - for (neighbor_token, _) in try_send_error!( - token, - db.find_connected_players_by_location(player.location) - ) { - send_queue.push( - neighbor_token, - if neighbor_token == token { - format!("You say, \"{}\"\n", args) - } else { - format!("{} says, \"{}\"\n", player.name, args) - }, - true, - ); - } - - send_queue -} diff --git a/src/command/command.rs b/src/command/command.rs index a2d0025..80666cf 100644 --- a/src/command/command.rs +++ b/src/command/command.rs @@ -3,7 +3,6 @@ use std::default::Default; use mio::Token; use strum_macros::{Display, EnumIter}; -use crate::actions; use crate::command::{CommandSet, Parse, ParserError}; use crate::database::Db; use crate::queue::SendQueue; @@ -91,18 +90,18 @@ impl Parse for Command { fn dispatch_map(&self) -> fn(&Self, String, Token, &mut Db) -> SendQueue { match self { - Self::N | Self::North => actions::move_room, - Self::S | Self::South => actions::move_room, - Self::E | Self::East => actions::move_room, - Self::W | Self::West => actions::move_room, - Self::U | Self::Up => actions::move_room, - Self::D | Self::Down => actions::move_room, - Self::Dig => actions::dig, - Self::Help => actions::help, - Self::Look => actions::look, + Self::N | Self::North => Self::dispatch_move_room, + Self::S | Self::South => Self::dispatch_move_room, + Self::E | Self::East => Self::dispatch_move_room, + Self::W | Self::West => Self::dispatch_move_room, + Self::U | Self::Up => Self::dispatch_move_room, + Self::D | Self::Down => Self::dispatch_move_room, + Self::Dig => Self::dispatch_dig, + Self::Help => Self::dispatch_help, + Self::Look => Self::dispatch_look, Self::Quit => Self::dispatch_quit, - Self::Save => actions::save, - Self::Say => actions::say, + Self::Save => Self::dispatch_save, + Self::Say => Self::dispatch_say, Self::Set(_) => Self::dispatch_map_subcommand, Self::Default => Self::dispatch_default, } diff --git a/src/command/dispatch/dig.rs b/src/command/dispatch/dig.rs new file mode 100644 index 0000000..838f455 --- /dev/null +++ b/src/command/dispatch/dig.rs @@ -0,0 +1,128 @@ +use std::collections::HashMap; +use std::str::FromStr; + +use mio::Token; + +use crate::command::Command; +use crate::database::Db; +use crate::queue::SendQueue; +use crate::world::{Direction, Exit, Room}; +use crate::{try_option_send_error, try_send_error}; + +impl Command { + /// Look at the room. Provide room name, description, and exits. + pub fn dispatch_dig(command: &Command, args: String, token: Token, db: &mut Db) -> SendQueue { + let mut send_queue = SendQueue::new(); + + // find the player + let mut player = try_option_send_error!(token, db.get_connected_player(token)); + + // get the direction to dig + let direction = match Direction::from_str(&args) { + Ok(d) => d, + Err(e) => { + send_queue.push(token, format!("{}", e), true); + return send_queue; + } + }; + + // get starting room + let mut start_room = try_option_send_error!(token, db.load_room(player.location)); + + // make sure exit doesn't already exist + if start_room.exits.contains_key(&direction) { + send_queue.push(token, "Exit already exists", true); + return send_queue; + } + + // get starting zone + let mut zone = try_option_send_error!(token, db.load_zone(start_room.zone)); + + let new_room_id = try_send_error!(token, db.new_area_id()); + + // create a new, empty room + let mut new_room = Room { + id: new_room_id, + zone: start_room.zone, + name: format!("New Room {}", new_room_id), + description: Vec::new(), + users_visible: true, + exits: HashMap::new(), + }; + + // add exit from start room to new room + let _ = start_room.exits.insert( + direction, + Exit { + target: new_room.id, + direction, + }, + ); + + // add exit from new room to start room + let _ = new_room.exits.insert( + direction.opposite(), + Exit { + target: start_room.id, + direction: direction.opposite(), + }, + ); + + // add new room to zone + let _ = zone.areas.insert(new_room.id); + + // save the new room + if db.save_room(&new_room).is_ok() { + send_queue.push(token, "New room saved\n", false); + } else { + send_queue.push(token, "Unable to save new room", true); + return send_queue; + } + + // save the start room + if db.save_room(&start_room).is_ok() { + send_queue.push(token, "Start room saved\n", false); + } else { + send_queue.push(token, "Unable to save start room", true); + return send_queue; + } + + // save the zone + if db.save_zone(&zone).is_ok() { + send_queue.push(token, "Zone saved\n", false); + } else { + send_queue.push(token, "Unable to save zone", true); + return send_queue; + } + + // move and save the player + player.location = new_room.id; + if db.save_player(&player).is_ok() { + if db.save_connected_player(token, &player).is_ok() { + send_queue.push(token, format!("You dig {}.\n\n", direction.long()), false); + } else { + send_queue.push(token, "Unable to save connected player", true); + } + } else { + send_queue.push(token, "Unable to save player", true); + return send_queue; + } + + // inform people about what just took place + for (neighbor_token, _) in + try_send_error!(token, db.find_connected_players_by_location(start_room.id)) + { + if neighbor_token != token { + send_queue.push( + neighbor_token, + format!("{} digs {}.", player.name, direction.long()), + true, + ); + } + } + + send_queue.append(&mut Self::dispatch_look(&command, args, token, db)); + + send_queue + } +} diff --git a/src/command/dispatch/help.rs b/src/command/dispatch/help.rs new file mode 100644 index 0000000..1b010c6 --- /dev/null +++ b/src/command/dispatch/help.rs @@ -0,0 +1,13 @@ +use mio::Token; + +use crate::command::Command; +use crate::database::Db; +use crate::queue::SendQueue; + +impl Command { + pub fn dispatch_help(command: &Command, args: String, token: Token, db: &mut Db) -> SendQueue { + let mut send_queue = SendQueue::new(); + + send_queue + } +} diff --git a/src/command/dispatch/look.rs b/src/command/dispatch/look.rs new file mode 100644 index 0000000..21b3491 --- /dev/null +++ b/src/command/dispatch/look.rs @@ -0,0 +1,57 @@ +use colored::Colorize; +use mio::Token; + +use crate::command::Command; +use crate::database::Db; +use crate::queue::SendQueue; +use crate::{try_option_send_error, try_send_error}; + +impl Command { + /// Look at the room. Provide room name, description, and exits. + pub fn dispatch_look(_: &Command, _: String, token: Token, db: &mut Db) -> SendQueue { + let mut send_queue = SendQueue::new(); + + // get the player + let player = try_option_send_error!(token, db.get_connected_player(token)); + + // get the room + let room = try_option_send_error!(token, db.load_room(player.location)); + + // room name + send_queue.push(token, format!("{}\n", room.name.cyan().to_string()), false); + + // room description + send_queue.push( + token, + format!("{}\n", { + let mut s = room.description.join("\n"); + s.push_str("\n"); + s + }), + false, + ); + + // exits + send_queue.push( + token, + format!("[ obvious exits: {} ]\n", room.exit_string()) + .cyan() + .to_string(), + false, + ); + + // other people in room + for (neighbor_token, neighbor_player) in try_send_error!( + token, + db.find_connected_players_by_location(player.location) + ) { + if neighbor_token != token { + send_queue.push(token, format!("{} is here", neighbor_player.name), false); + } + } + + send_queue.push(token, "", true); + + send_queue + } +} diff --git a/src/command/dispatch/mod.rs b/src/command/dispatch/mod.rs new file mode 100644 index 0000000..5124caf --- /dev/null +++ b/src/command/dispatch/mod.rs @@ -0,0 +1,7 @@ +mod dig; +mod help; +mod look; +mod move_room; +mod quit; +mod save; +mod say; diff --git a/src/command/dispatch/move_room.rs b/src/command/dispatch/move_room.rs new file mode 100644 index 0000000..7883abc --- /dev/null +++ b/src/command/dispatch/move_room.rs @@ -0,0 +1,85 @@ +use log::warn; +use mio::Token; + +use crate::command::Command; +use crate::database::Db; +use crate::queue::SendQueue; +use crate::world::*; +use crate::{try_option_send_error, try_send_error}; + +impl Command { + pub fn dispatch_move_room(command: &Command, _args: String, token: Token, db: &mut Db) -> SendQueue { + let mut send_queue = SendQueue::new(); + + let direction: Direction = match command { + Command::N | Command::North => Direction::North, + Command::S | Command::South => Direction::South, + Command::E | Command::East => Direction::East, + Command::W | Command::West => Direction::West, + Command::U | Command::Up => Direction::Up, + Command::D | Command::Down => Direction::Down, + _ => { + warn!("Can't figure out direction: {:?}", command); + return send_queue; + } + }; + + // find the player + let mut player = try_option_send_error!(token, db.get_connected_player(token)); + + // get starting room + let start_room = try_option_send_error!(token, db.load_room(player.location)); + + // get the exit + let exit = if let Some(exit) = start_room.exits.get(&direction) { + exit + } else { + send_queue.push(token, "You can't go that way.", true); + return send_queue; + }; + + // get the target room + let target_room = try_option_send_error!(token, db.load_room(exit.target)); + + // move and save the player + player.location = target_room.id; + let _ = try_send_error!(token, db.save_player(&player)); + let _ = try_send_error!(token, db.save_connected_player(token, &player)); + send_queue.push(token, format!("You leave {}.\n\n", direction.long()), false); + + // tell people about leaving + for (neighbor_token, _) in + try_send_error!(token, db.find_connected_players_by_location(start_room.id)) + { + if neighbor_token != token { + send_queue.push( + neighbor_token, + format!("{} leaves {}.", player.name, direction.long()), + true, + ); + } + } + + // tell people about entering + for (neighbor_token, _) in + try_send_error!(token, db.find_connected_players_by_location(target_room.id)) + { + if neighbor_token != token { + send_queue.push( + neighbor_token, + format!( + "{} arrives from the {}.", + player.name, + direction.opposite().long() + ), + true, + ); + } + } + + // look around + send_queue.append(&mut Self::dispatch_look(&command, String::new(), token, db)); + + send_queue + } +} diff --git a/src/command/quit.rs b/src/command/dispatch/quit.rs similarity index 100% rename from src/command/quit.rs rename to src/command/dispatch/quit.rs diff --git a/src/command/dispatch/save.rs b/src/command/dispatch/save.rs new file mode 100644 index 0000000..677af44 --- /dev/null +++ b/src/command/dispatch/save.rs @@ -0,0 +1,20 @@ +use mio::Token; + +use crate::command::Command; +use crate::database::Db; +use crate::queue::SendQueue; +use crate::{try_option_send_error, try_send_error}; + +impl Command { + /// Save the player information to disk. + pub fn dispatch_save(_: &Command, _: String, token: Token, db: &mut Db) -> SendQueue { + let mut send_queue = SendQueue::new(); + + let player = try_option_send_error!(token, db.get_connected_player(token)); + let _ = try_send_error!(token, db.save_player(&player)); + let _ = try_send_error!(token, db.save_connected_player(token, &player)); + + send_queue.push(token, "Ok", true); + send_queue + } +} diff --git a/src/command/dispatch/say.rs b/src/command/dispatch/say.rs new file mode 100644 index 0000000..0678654 --- /dev/null +++ b/src/command/dispatch/say.rs @@ -0,0 +1,32 @@ +use mio::Token; + +use crate::command::Command; +use crate::database::Db; +use crate::queue::SendQueue; +use crate::{try_option_send_error, try_send_error}; + +impl Command { + /// Say something to anyone in the room. + pub fn dispatch_say(_: &Command, args: String, token: Token, db: &mut Db) -> SendQueue { + let mut send_queue = SendQueue::new(); + + let player = try_option_send_error!(token, db.get_connected_player(token)); + + for (neighbor_token, _) in try_send_error!( + token, + db.find_connected_players_by_location(player.location) + ) { + send_queue.push( + neighbor_token, + if neighbor_token == token { + format!("You say, \"{}\"\n", args) + } else { + format!("{} says, \"{}\"\n", player.name, args) + }, + true, + ); + } + + send_queue + } +} diff --git a/src/command/mod.rs b/src/command/mod.rs index 410f455..423ba49 100644 --- a/src/command/mod.rs +++ b/src/command/mod.rs @@ -1,11 +1,10 @@ mod command; +mod dispatch; mod parse; mod parser_error; -mod quit; mod set; pub use command::Command; pub use parse::Parse; pub use parser_error::ParserError; -pub use quit::*; pub use set::*; diff --git a/src/game/state/login.rs b/src/game/state/login.rs index f746124..2c59886 100644 --- a/src/game/state/login.rs +++ b/src/game/state/login.rs @@ -2,7 +2,6 @@ use chrono::Utc; use log::warn; use mio::Token; -use crate::actions; use crate::command::Command; use crate::game::Game; use crate::player::Player; @@ -89,7 +88,7 @@ impl Game { send_queue.push(token, format!("Welcome, {}\n", username), false); send_queue.push(token, "", true); - send_queue.append(&mut actions::look( + send_queue.append(&mut Command::dispatch_look( &Command::default(), String::new(), token, @@ -122,7 +121,7 @@ impl Game { ); client.state = State::Action; - send_queue.append(&mut actions::look( + send_queue.append(&mut Command::dispatch_look( &Command::default(), String::new(), token, diff --git a/src/lib.rs b/src/lib.rs index 15f16e3..8a65fc9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,5 @@ //! The Rude Mud -pub mod actions; pub mod client; pub mod command; pub mod config; diff --git a/src/main.rs b/src/main.rs index 0a31317..645e4d0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,3 @@ -mod actions; mod client; mod command; mod config;