pinakes-tui: add book management view and api key authentication
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I20f205d9e06a93a89e8f4433ed6f80576a6a6964
This commit is contained in:
parent
3d9f8933d2
commit
66861b8a20
18 changed files with 917 additions and 251 deletions
|
|
@ -21,6 +21,10 @@ struct Cli {
|
|||
)]
|
||||
server: String,
|
||||
|
||||
/// API key for bearer token authentication
|
||||
#[arg(long, env = "PINAKES_API_KEY")]
|
||||
api_key: Option<String>,
|
||||
|
||||
/// Set log level (trace, debug, info, warn, error)
|
||||
#[arg(long, default_value = "warn")]
|
||||
log_level: String,
|
||||
|
|
@ -53,5 +57,5 @@ async fn main() -> Result<()> {
|
|||
.init();
|
||||
}
|
||||
|
||||
app::run(&cli.server).await
|
||||
app::run(&cli.server, cli.api_key.as_deref()).await
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue