upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/lib/mod.rs
blob: 2072a808c5953c1cd5c3722b37c76771d55ce41e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub mod cli_interactor;
pub mod client;
pub mod git;
pub mod git_events;
pub mod login;
pub mod repo_ref;
pub mod repo_state;

use anyhow::{Result, anyhow};
use directories::ProjectDirs;

pub fn get_dirs() -> Result<ProjectDirs> {
    ProjectDirs::from("", "", "ngit").ok_or(anyhow!(
        "should find operating system home directories with rust-directories crate"
    ))
}