gitbucket-cli 0.6.1

A command-line tool for GitBucket, inspired by GitHub CLI
1
2
3
4
5
6
7
8
9
10
use crate::api::client::ApiClient;
use crate::error::Result;
use crate::models::user::User;

impl ApiClient {
    /// Get the authenticated user
    pub async fn current_user(&self) -> Result<User> {
        self.get("/user").await
    }
}