diff options
| author | diogo464 <[email protected]> | 2021-07-09 10:08:13 -0400 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2021-07-09 10:08:13 -0400 |
| commit | 3c63bf31b0c4f105d155622c84baf91745f5b9c6 (patch) | |
| tree | 7e792aef85448401cf89b0ba168f600832ea2b99 /dotup_cli | |
| parent | 21c234735ebf74899ce9a98cb46d9500b3f51e89 (diff) | |
Moved utils module to the root of the crate.
Diffstat (limited to 'dotup_cli')
| -rw-r--r-- | dotup_cli/src/commands/mod.rs | 2 | ||||
| -rw-r--r-- | dotup_cli/src/main.rs | 4 | ||||
| -rw-r--r-- | dotup_cli/src/utils.rs (renamed from dotup_cli/src/commands/utils.rs) | 0 |
3 files changed, 2 insertions, 4 deletions
diff --git a/dotup_cli/src/commands/mod.rs b/dotup_cli/src/commands/mod.rs index f372662..ef7fd0f 100644 --- a/dotup_cli/src/commands/mod.rs +++ b/dotup_cli/src/commands/mod.rs | |||
| @@ -3,9 +3,7 @@ pub mod install; | |||
| 3 | pub mod link; | 3 | pub mod link; |
| 4 | pub mod uninstall; | 4 | pub mod uninstall; |
| 5 | pub mod unlink; | 5 | pub mod unlink; |
| 6 | pub mod utils; | ||
| 7 | 6 | ||
| 8 | mod prelude { | 7 | mod prelude { |
| 9 | pub use super::utils; | ||
| 10 | pub use crate::prelude::*; | 8 | pub use crate::prelude::*; |
| 11 | } | 9 | } |
diff --git a/dotup_cli/src/main.rs b/dotup_cli/src/main.rs index 0b4bff1..b4339c9 100644 --- a/dotup_cli/src/main.rs +++ b/dotup_cli/src/main.rs | |||
| @@ -2,17 +2,17 @@ | |||
| 2 | 2 | ||
| 3 | pub mod commands; | 3 | pub mod commands; |
| 4 | pub mod config; | 4 | pub mod config; |
| 5 | pub mod utils; | ||
| 5 | 6 | ||
| 6 | pub use config::Config; | 7 | pub use config::Config; |
| 7 | 8 | ||
| 8 | pub mod prelude { | 9 | pub mod prelude { |
| 9 | pub use super::Config; | 10 | pub use super::{utils, Config}; |
| 10 | pub use clap::{AppSettings, Clap}; | 11 | pub use clap::{AppSettings, Clap}; |
| 11 | pub use dotup::{Archive, Depot, DepotConfig, Link, LinkCreateParams, LinkID}; | 12 | pub use dotup::{Archive, Depot, DepotConfig, Link, LinkCreateParams, LinkID}; |
| 12 | } | 13 | } |
| 13 | 14 | ||
| 14 | use clap::{AppSettings, Clap}; | 15 | use clap::{AppSettings, Clap}; |
| 15 | use commands::utils; | ||
| 16 | use flexi_logger::Logger; | 16 | use flexi_logger::Logger; |
| 17 | use std::{ | 17 | use std::{ |
| 18 | collections::HashMap, | 18 | collections::HashMap, |
diff --git a/dotup_cli/src/commands/utils.rs b/dotup_cli/src/utils.rs index 706266e..706266e 100644 --- a/dotup_cli/src/commands/utils.rs +++ b/dotup_cli/src/utils.rs | |||
