summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorNaz <ndpm13@ch-naseem.com>2025-07-30 07:11:24 +0100
committerNaz <ndpm13@ch-naseem.com>2025-07-30 07:11:24 +0100
commitdf40ab0fd7d9641297833dc7e0691522c25e2bc9 (patch)
treeb185168ceedb4f71b255e7e61a365566da41538d /src/lib.rs
parentd3c84b04d7a46735dd19a2dae9448e811a609291 (diff)
parent11a86042e73bb0eecad61ac6e636dd98563167f5 (diff)
Merge pull request '🔧refactor: separate download logic from AppImage struct' (#11) from feat/issue-7 into main
Reviewed-on: https://git.ch-naseem.com/ndpm13/zap-rs/pulls/11
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs29
1 files changed, 12 insertions, 17 deletions
diff --git a/src/lib.rs b/src/lib.rs
index e09a021..c0db44a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,22 +1,17 @@
+mod appimage;
mod args;
+mod downloader;
+mod index;
+mod manager;
+mod paths;
+mod symlink;
mod tui;
-mod types;
+pub use crate::appimage::*;
pub use crate::args::*;
+pub use crate::downloader::*;
+pub use crate::index::*;
+pub use crate::manager::*;
+pub use crate::paths::*;
+pub use crate::symlink::*;
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")
-}