aboutsummaryrefslogtreecommitdiff
path: root/planetwars-cli/src/commands/build.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-07-21 19:19:40 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-07-21 19:19:40 +0200
commitc6293d8e328bb96c368921fe922092d4f27f0bc9 (patch)
tree1c374345ba911b79167ae70a654dd0618efa9446 /planetwars-cli/src/commands/build.rs
parent31f8271db6735a1c7abea4d93bb3b8d7a3ce4628 (diff)
downloadplanetwars.dev-c6293d8e328bb96c368921fe922092d4f27f0bc9.tar.xz
planetwars.dev-c6293d8e328bb96c368921fe922092d4f27f0bc9.zip
delete old planetwars-cli code
Diffstat (limited to 'planetwars-cli/src/commands/build.rs')
-rw-r--r--planetwars-cli/src/commands/build.rs27
1 files changed, 0 insertions, 27 deletions
diff --git a/planetwars-cli/src/commands/build.rs b/planetwars-cli/src/commands/build.rs
deleted file mode 100644
index 1df0bb6..0000000
--- a/planetwars-cli/src/commands/build.rs
+++ /dev/null
@@ -1,27 +0,0 @@
-use clap::Parser;
-use std::io;
-use tokio::process;
-
-use crate::workspace::Workspace;
-
-#[derive(Parser)]
-pub struct BuildCommand {
- /// Name of the bot to build
- bot: String,
-}
-
-impl BuildCommand {
- pub async fn run(self) -> io::Result<()> {
- let workspace = Workspace::open_current_dir()?;
- let bot = workspace.get_bot(&self.bot)?;
- if let Some(argv) = bot.config.get_build_argv() {
- process::Command::new(&argv[0])
- .args(&argv[1..])
- .current_dir(&bot.path)
- .spawn()?
- .wait()
- .await?;
- }
- Ok(())
- }
-}