diff options
| author | Ilion Beyst <ilion.beyst@gmail.com> | 2021-12-26 22:00:20 +0100 |
|---|---|---|
| committer | Ilion Beyst <ilion.beyst@gmail.com> | 2021-12-26 22:00:20 +0100 |
| commit | 31b439ee313c9268ac338dd130390d4f7200e693 (patch) | |
| tree | 75b3905deacdd849d5fb4fab7e28ed3bf366151b /planetwars-cli/src/lib.rs | |
| parent | 0d03a0fbc214dd3fb9a8af562f9d88cccaf5f2c0 (diff) | |
| download | planetwars.dev-31b439ee313c9268ac338dd130390d4f7200e693.tar.xz planetwars.dev-31b439ee313c9268ac338dd130390d4f7200e693.zip | |
rebrand project to workspace
Diffstat (limited to 'planetwars-cli/src/lib.rs')
| -rw-r--r-- | planetwars-cli/src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/planetwars-cli/src/lib.rs b/planetwars-cli/src/lib.rs index de9905d..b71164f 100644 --- a/planetwars-cli/src/lib.rs +++ b/planetwars-cli/src/lib.rs @@ -9,7 +9,7 @@ use std::collections::HashMap; use std::path::{Path, PathBuf}; #[derive(Serialize, Deserialize, Debug)] -struct ProjectConfig { +struct WorkspaceConfig { bots: HashMap<String, BotConfig>, } @@ -27,8 +27,8 @@ pub async fn run() { } } -fn resolve_bot_config(project_dir: &Path, config: BotConfig) -> BotConfig { - let mut path = PathBuf::from(project_dir); +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(), |
