galoy-cli 0.1.7

A CLI Client for interacting with Galoy Backend
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use anyhow::Context;

use crate::app::App;

impl App {
    pub async fn globals(&self) -> anyhow::Result<()> {
        let globals = self
            .client
            .globals()
            .await
            .context("Error occurred while fetching globals")?;

        println!("{}", serde_json::to_string_pretty(&globals)?);
        Ok(())
    }
}