aboutsummaryrefslogtreecommitdiff
path: root/planetwars-cli/src/commands/mod.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/mod.rs
parent31f8271db6735a1c7abea4d93bb3b8d7a3ce4628 (diff)
downloadplanetwars.dev-c6293d8e328bb96c368921fe922092d4f27f0bc9.tar.xz
planetwars.dev-c6293d8e328bb96c368921fe922092d4f27f0bc9.zip
delete old planetwars-cli code
Diffstat (limited to 'planetwars-cli/src/commands/mod.rs')
-rw-r--r--planetwars-cli/src/commands/mod.rs40
1 files changed, 0 insertions, 40 deletions
diff --git a/planetwars-cli/src/commands/mod.rs b/planetwars-cli/src/commands/mod.rs
deleted file mode 100644
index 52fed5c..0000000
--- a/planetwars-cli/src/commands/mod.rs
+++ /dev/null
@@ -1,40 +0,0 @@
-mod build;
-mod init;
-mod run_match;
-mod serve;
-
-use clap::{Parser, Subcommand};
-use std::io;
-
-#[derive(Parser)]
-#[clap(name = "pwcli")]
-#[clap(author, version, about)]
-pub struct Cli {
- #[clap(subcommand)]
- command: Command,
-}
-
-impl Cli {
- pub async fn run() -> io::Result<()> {
- let cli = Self::parse();
-
- match cli.command {
- Command::Init(command) => command.run().await,
- Command::RunMatch(command) => command.run().await,
- Command::Serve(command) => command.run().await,
- Command::Build(command) => command.run().await,
- }
- }
-}
-
-#[derive(Subcommand)]
-enum Command {
- /// Initialize a new workspace
- Init(init::InitCommand),
- /// Run a match
- RunMatch(run_match::RunMatchCommand),
- /// Host local webserver
- Serve(serve::ServeCommand),
- /// Run build command for a bot
- Build(build::BuildCommand),
-}