diff options
| author | soryu <soryu@soryu.co> | 2026-01-20 17:23:34 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-01-20 17:23:46 +0000 |
| commit | 055e2c4a72e3b2331a18fdc9f8132ef990af7e38 (patch) | |
| tree | 75b92637b9132594b76a5a86f5f854bca1ddee49 /makima/src/daemon/cli/view.rs | |
| parent | 54c6d409e1d5667f4ab7f63a43e1459e68575c94 (diff) | |
| download | soryu-055e2c4a72e3b2331a18fdc9f8132ef990af7e38.tar.gz soryu-055e2c4a72e3b2331a18fdc9f8132ef990af7e38.zip | |
Update CLI to show log history as well
Diffstat (limited to 'makima/src/daemon/cli/view.rs')
| -rw-r--r-- | makima/src/daemon/cli/view.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/makima/src/daemon/cli/view.rs b/makima/src/daemon/cli/view.rs index b5b516f..b9fa82f 100644 --- a/makima/src/daemon/cli/view.rs +++ b/makima/src/daemon/cli/view.rs @@ -67,12 +67,16 @@ use clap::Args; #[derive(Args, Debug, Clone)] pub struct ViewArgs { /// API URL for the makima server - #[arg(long, env = "MAKIMA_API_URL", default_value = "https://api.makima.jp")] - pub api_url: String, + /// + /// If not provided, uses MAKIMA_API_URL env var or ~/.makima/config.toml + #[arg(long, env = "MAKIMA_API_URL")] + pub api_url: Option<String>, /// API key for authentication + /// + /// If not provided, uses MAKIMA_API_KEY env var or ~/.makima/config.toml #[arg(long, env = "MAKIMA_API_KEY")] - pub api_key: String, + pub api_key: Option<String>, /// Initial search query /// |
