diff options
Diffstat (limited to 'planetwars-cli/src/lib.rs')
-rw-r--r-- | planetwars-cli/src/lib.rs | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/planetwars-cli/src/lib.rs b/planetwars-cli/src/lib.rs index b71164f..e5566b0 100644 --- a/planetwars-cli/src/lib.rs +++ b/planetwars-cli/src/lib.rs @@ -1,23 +1,7 @@ -use serde::Deserialize; - mod commands; mod match_runner; mod web; - -use serde::Serialize; -use std::collections::HashMap; -use std::path::{Path, PathBuf}; - -#[derive(Serialize, Deserialize, Debug)] -struct WorkspaceConfig { - bots: HashMap<String, BotConfig>, -} - -#[derive(Serialize, Deserialize, Debug, Clone)] -pub struct BotConfig { - path: String, - argv: Vec<String>, -} +mod workspace; pub async fn run() { let res = commands::Cli::run().await; @@ -26,12 +10,3 @@ pub async fn run() { std::process::exit(1); } } - -fn resolve_bot_config(workspace_dir: &Path, config: BotConfig) -> BotConfig { - let mut path = PathBuf::from(workspace_dir); - path.push(&config.path); - BotConfig { - path: path.to_str().unwrap().to_string(), - argv: config.argv, - } -} |