feat: run http server to receive commands
This commit is contained in:
@@ -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>,
|
||||
}
|
||||
|
Reference in New Issue
Block a user