hop-cli 0.2.61

Interact with Hop in your terminal
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::path::PathBuf;

use anyhow::{Context, Result};

pub fn home_path(to_join: &str) -> Result<PathBuf> {
    let path = dirs::home_dir()
        .context("Could not find `home` directory")?
        .join(to_join);

    log::debug!("Home path + joined: {:?}", path);

    Ok(path)
}