consulx 1.0.0

A pure-HTTP Consul KV CLI + REPL built from scratch
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use consulx::{start_repl, ConsulXClient};

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let addr = std::env::var("CONSUL_HTTP_ADDR")
        .unwrap_or_else(|_| "http://127.0.0.1:8500".to_string());

    println!("Connecting to Consul at: {}", addr);

    let client = ConsulXClient::new(&addr)?;
    start_repl(client).await?;

    Ok(())
}