summaryrefslogtreecommitdiff
path: root/src/lib.rs
blob: e09a0218fd00d60a75ed59b2126dd0b93c3a908b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
mod args;
mod tui;
mod types;

pub use crate::args::*;
pub use crate::tui::*;
pub use crate::types::*;

use std::path::PathBuf;

pub fn zap_rs_home() -> PathBuf {
    let home = std::env::var("HOME").expect("HOME not set");
    PathBuf::from(home).join(".local/share/zap-rs")
}

pub fn index_dir() -> PathBuf {
    zap_rs_home().join("index")
}

pub fn appimages_dir() -> PathBuf {
    zap_rs_home().join("appimages")
}