skiff-cli 0.1.2

Progressive MCP / OpenAPI / GraphQL CLI for agents — fast warm discovery, sessions, spool
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Open the system browser for the authorization URL.

use std::io::{self, Write};

/// Print the auth URL to stderr and attempt to open it in a browser.
pub fn open_authorization_url(url: &str) {
    let _ = writeln!(
        io::stderr(),
        "Open this URL in your browser to authorize:\n\n{url}\n"
    );
    if let Err(e) = open::that(url) {
        let _ = writeln!(
            io::stderr(),
            "(could not open browser automatically: {e}; open the URL manually)"
        );
    }
}