From c04d4a449bd147c632c0b6ceae04f0514803b66f Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Sun, 26 Dec 2021 21:06:52 +0100 Subject: [PATCH] rename to planetwars-cli --- Cargo.toml | 2 +- {planetwars-localdev => planetwars-cli}/Cargo.toml | 2 +- {planetwars-localdev => planetwars-cli}/README.md | 0 {planetwars-localdev => planetwars-cli}/assets/hex.json | 0 .../assets/pw_project.toml | 0 {planetwars-localdev => planetwars-cli}/assets/simplebot.py | 0 planetwars-cli/src/bin/pwcli.rs | 6 ++++++ {planetwars-localdev => planetwars-cli}/src/lib.rs | 0 .../src/match_runner/bot_runner.rs | 0 .../src/match_runner/match_context.rs | 0 .../src/match_runner/mod.rs | 0 .../src/match_runner/pw_match.rs | 0 {planetwars-localdev => planetwars-cli}/src/web/mod.rs | 0 planetwars-localdev/src/bin/pwcli.rs | 6 ------ 14 files changed, 8 insertions(+), 8 deletions(-) rename {planetwars-localdev => planetwars-cli}/Cargo.toml (95%) rename {planetwars-localdev => planetwars-cli}/README.md (100%) rename {planetwars-localdev => planetwars-cli}/assets/hex.json (100%) rename {planetwars-localdev => planetwars-cli}/assets/pw_project.toml (100%) rename {planetwars-localdev => planetwars-cli}/assets/simplebot.py (100%) create mode 100644 planetwars-cli/src/bin/pwcli.rs rename {planetwars-localdev => planetwars-cli}/src/lib.rs (100%) rename {planetwars-localdev => planetwars-cli}/src/match_runner/bot_runner.rs (100%) rename {planetwars-localdev => planetwars-cli}/src/match_runner/match_context.rs (100%) rename {planetwars-localdev => planetwars-cli}/src/match_runner/mod.rs (100%) rename {planetwars-localdev => planetwars-cli}/src/match_runner/pw_match.rs (100%) rename {planetwars-localdev => planetwars-cli}/src/web/mod.rs (100%) delete mode 100644 planetwars-localdev/src/bin/pwcli.rs diff --git a/Cargo.toml b/Cargo.toml index 474a843..8af2433 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,5 +2,5 @@ members = [ "planetwars-rules", - "planetwars-localdev", + "planetwars-cli", ] diff --git a/planetwars-localdev/Cargo.toml b/planetwars-cli/Cargo.toml similarity index 95% rename from planetwars-localdev/Cargo.toml rename to planetwars-cli/Cargo.toml index 8595d14..977ce18 100644 --- a/planetwars-localdev/Cargo.toml +++ b/planetwars-cli/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "planetwars-localdev" +name = "planetwars-cli" version = "0.1.0" edition = "2021" diff --git a/planetwars-localdev/README.md b/planetwars-cli/README.md similarity index 100% rename from planetwars-localdev/README.md rename to planetwars-cli/README.md diff --git a/planetwars-localdev/assets/hex.json b/planetwars-cli/assets/hex.json similarity index 100% rename from planetwars-localdev/assets/hex.json rename to planetwars-cli/assets/hex.json diff --git a/planetwars-localdev/assets/pw_project.toml b/planetwars-cli/assets/pw_project.toml similarity index 100% rename from planetwars-localdev/assets/pw_project.toml rename to planetwars-cli/assets/pw_project.toml diff --git a/planetwars-localdev/assets/simplebot.py b/planetwars-cli/assets/simplebot.py similarity index 100% rename from planetwars-localdev/assets/simplebot.py rename to planetwars-cli/assets/simplebot.py diff --git a/planetwars-cli/src/bin/pwcli.rs b/planetwars-cli/src/bin/pwcli.rs new file mode 100644 index 0000000..438d3bc --- /dev/null +++ b/planetwars-cli/src/bin/pwcli.rs @@ -0,0 +1,6 @@ +use planetwars_cli; + +#[tokio::main] +async fn main() { + planetwars_cli::run().await +} diff --git a/planetwars-localdev/src/lib.rs b/planetwars-cli/src/lib.rs similarity index 100% rename from planetwars-localdev/src/lib.rs rename to planetwars-cli/src/lib.rs diff --git a/planetwars-localdev/src/match_runner/bot_runner.rs b/planetwars-cli/src/match_runner/bot_runner.rs similarity index 100% rename from planetwars-localdev/src/match_runner/bot_runner.rs rename to planetwars-cli/src/match_runner/bot_runner.rs diff --git a/planetwars-localdev/src/match_runner/match_context.rs b/planetwars-cli/src/match_runner/match_context.rs similarity index 100% rename from planetwars-localdev/src/match_runner/match_context.rs rename to planetwars-cli/src/match_runner/match_context.rs diff --git a/planetwars-localdev/src/match_runner/mod.rs b/planetwars-cli/src/match_runner/mod.rs similarity index 100% rename from planetwars-localdev/src/match_runner/mod.rs rename to planetwars-cli/src/match_runner/mod.rs diff --git a/planetwars-localdev/src/match_runner/pw_match.rs b/planetwars-cli/src/match_runner/pw_match.rs similarity index 100% rename from planetwars-localdev/src/match_runner/pw_match.rs rename to planetwars-cli/src/match_runner/pw_match.rs diff --git a/planetwars-localdev/src/web/mod.rs b/planetwars-cli/src/web/mod.rs similarity index 100% rename from planetwars-localdev/src/web/mod.rs rename to planetwars-cli/src/web/mod.rs diff --git a/planetwars-localdev/src/bin/pwcli.rs b/planetwars-localdev/src/bin/pwcli.rs deleted file mode 100644 index c45bbfa..0000000 --- a/planetwars-localdev/src/bin/pwcli.rs +++ /dev/null @@ -1,6 +0,0 @@ -use planetwars_localdev; - -#[tokio::main] -async fn main() { - planetwars_localdev::run().await -}