mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-05-08 05:09:10 -07:00
server: multiple frontends + auto download from github when needed
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
mod paths;
|
||||
mod pause;
|
||||
mod rlimit;
|
||||
|
||||
pub use paths::*;
|
||||
pub use pause::*;
|
||||
pub use rlimit::*;
|
||||
|
||||
10
crates/brk_core/src/utils/paths.rs
Normal file
10
crates/brk_core/src/utils/paths.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
pub fn path_dot_brk() -> PathBuf {
|
||||
let home = std::env::var("HOME").unwrap();
|
||||
Path::new(&home).join(".brk")
|
||||
}
|
||||
|
||||
pub fn path_dot_brk_log() -> PathBuf {
|
||||
path_dot_brk().join("log")
|
||||
}
|
||||
Reference in New Issue
Block a user