Cli web auth token (#4456)

Signed-off-by: Evanfeenstra <evanfeenstra@gmail.com>
This commit is contained in:
Evan Feenstra
2025-09-29 13:05:17 -07:00
committed by GitHub
parent 509fcac69d
commit 41d32c04b1
4 changed files with 79 additions and 10 deletions
+11 -2
View File
@@ -703,6 +703,10 @@ enum Command {
/// Open browser automatically
#[arg(long, help = "Open browser automatically when server starts")]
open: bool,
/// Authentication token for both Basic Auth (password) and Bearer token
#[arg(long, help = "Authentication token to secure the web interface")]
auth_token: Option<String>,
},
}
@@ -1211,8 +1215,13 @@ pub async fn cli() -> Result<()> {
}
return Ok(());
}
Some(Command::Web { port, host, open }) => {
crate::commands::web::handle_web(port, host, open).await?;
Some(Command::Web {
port,
host,
open,
auth_token,
}) => {
crate::commands::web::handle_web(port, host, open, auth_token).await?;
return Ok(());
}
None => {