diff options
Diffstat (limited to 'src/lib/mod.rs')
| -rw-r--r-- | src/lib/mod.rs | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/lib/mod.rs b/src/lib/mod.rs index 61dfc49..6e6f6fe 100644 --- a/src/lib/mod.rs +++ b/src/lib/mod.rs | |||
| @@ -1,16 +1,16 @@ | |||
| 1 | mod cli_interactor; | 1 | pub mod cli_interactor; |
| 2 | mod client; | 2 | pub mod client; |
| 3 | mod config; | 3 | pub mod git; |
| 4 | mod git; | 4 | pub mod git_events; |
| 5 | mod key_handling; | 5 | pub mod login; |
| 6 | mod login; | 6 | pub mod repo_ref; |
| 7 | mod repo_ref; | 7 | pub mod repo_state; |
| 8 | mod repo_state; | ||
| 9 | 8 | ||
| 10 | pub use client; | 9 | use anyhow::{anyhow, Result}; |
| 11 | pub use config; | 10 | use directories::ProjectDirs; |
| 12 | pub use git; | 11 | |
| 13 | pub use key_handling; | 12 | pub fn get_dirs() -> Result<ProjectDirs> { |
| 14 | pub use login; | 13 | ProjectDirs::from("", "", "ngit").ok_or(anyhow!( |
| 15 | pub use repo_ref; | 14 | "should find operating system home directories with rust-directories crate" |
| 16 | pub use repo_state; | 15 | )) |
| 16 | } | ||