feat: run http server to receive commands

This commit is contained in:
2025-02-15 22:47:22 -05:00
parent a937db0be6
commit 5752e94ad2
6 changed files with 138 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
use clap::Parser;
use std::path::PathBuf;
use std::{net::SocketAddr, path::PathBuf};
/// A Minecraft utility bot
#[derive(Parser)]
@@ -7,4 +7,8 @@ pub struct Arguments {
/// Path to main Lua file
#[arg(short, long)]
pub script: Option<PathBuf>,
/// Socket address to bind HTTP server to
#[arg(short, long)]
pub address: Option<SocketAddr>,
}