Skip to content

Commit add9820

Browse files
authored
Use QW_CLUSTER_ENDPOINT in CLI commands when set. (#2932)
1 parent fdc729f commit add9820

File tree

1 file changed

+1
-0
lines changed
  • quickwit/quickwit-cli/src

1 file changed

+1
-0
lines changed

quickwit/quickwit-cli/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ fn config_cli_arg<'a>() -> Arg<'a> {
7676
fn cluster_endpoint_arg<'a>() -> Arg<'a> {
7777
arg!(--"endpoint" <QW_CLUSTER_ENDPOINT> "Quickwit cluster endpoint.")
7878
.default_value("http://127.0.0.1:7280")
79+
.env("QW_CLUSTER_ENDPOINT")
7980
.required(false)
8081
.display_order(1)
8182
.global(true)

0 commit comments

Comments
 (0)