2026-02-11 15:23:26 +00:00
|
|
|
use runtime_dashboard::tui::types::RuntimeEndpoint;
|
2026-02-12 09:10:28 +00:00
|
|
|
use runtime_dashboard::tui::{start_tui_remote, TuiConfig};
|
2026-02-11 15:23:26 +00:00
|
|
|
|
|
|
|
|
fn main() -> std::io::Result<()> {
|
|
|
|
|
let url = std::env::args()
|
|
|
|
|
.nth(1)
|
|
|
|
|
.unwrap_or_else(|| "http://localhost:9090".into());
|
|
|
|
|
|
|
|
|
|
let endpoint = RuntimeEndpoint::from_url(&url);
|
2026-02-12 09:10:28 +00:00
|
|
|
eprintln!("Connecting to {endpoint} ...");
|
2026-02-11 15:23:26 +00:00
|
|
|
|
|
|
|
|
start_tui_remote(endpoint, TuiConfig::default())
|
|
|
|
|
}
|