//! Gateway and Galaxy client construction helpers. use zb_mom_ww_mxgateway_client::{Error, GalaxyClient, GatewayClient}; use crate::cli::*; pub(crate) async fn connect(connection: ConnectionArgs) -> Result { GatewayClient::connect(connection.options()).await } pub(crate) async fn connect_galaxy(connection: ConnectionArgs) -> Result { GalaxyClient::connect(connection.options()).await } pub(crate) async fn session_for( connection: ConnectionArgs, session_id: String, ) -> Result { let client = connect(connection).await?; Ok(client.session(session_id)) }