feat: implement server configuration with address and port options

Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-15 17:55:13 -03:00
parent b9d79d2fe1
commit 29ce003fa8
3 changed files with 41 additions and 20 deletions

View File

@@ -64,8 +64,16 @@ pub struct ModeArgs {
pub status: bool,
#[arg(group("mode"), help_heading("Mode Options"), long, conflicts_with_all(["save", "get", "diff", "list", "update", "delete", "info", "status"]))]
#[arg(help("Start REST HTTP server on specified address:port or socket path"))]
pub server: Option<String>,
#[arg(help("Start REST HTTP server"))]
pub server: bool,
#[arg(help_heading("Server Options"), long, env("KEEP_SERVER_ADDRESS"))]
#[arg(help("Server address to bind to"))]
pub server_address: Option<String>,
#[arg(help_heading("Server Options"), long, env("KEEP_SERVER_PORT"))]
#[arg(help("Server port to bind to"))]
pub server_port: Option<u16>,
}
/**