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
17
18
mod errors;
mod file_manager;
mod operations;
mod server;

use crate::client::GaloyClient;

pub struct App {
    client: GaloyClient,
}

impl App {
    pub fn new(api: String) -> anyhow::Result<Self> {
        let token = file_manager::get_data(file_manager::TOKEN_FILE_NAME)?;
        let client = GaloyClient::new(api, token)?;
        Ok(Self { client })
    }
}