xbp 10.12.2

XBP is a zero-config build pack that can also interact with proxies, kafka, sockets, synthetic monitors.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::config::ApiConfig;
use crate::utils::open_with_default_handler;

pub async fn run_login() -> Result<(), String> {
    let api = ApiConfig::load();
    let confirm_url = format!("{}/login?cli=1", api.base_url());

    println!("XBP login is currently a stub.");
    println!("Open this URL to continue the confirmation flow:");
    println!("{}", confirm_url);

    let _ = open_with_default_handler(&confirm_url);

    Ok(())
}