From bb6d50d76c3d94b6787e227dc8f306b2edf39461 Mon Sep 17 00:00:00 2001 From: "Florian RICHER (MrDev023)" Date: Sat, 24 Jul 2021 20:21:32 +0200 Subject: [PATCH] Move fvm to packages in common --- src/common/mod.rs | 2 +- src/common/{ => packages}/fvm/git.rs | 0 src/common/{ => packages}/fvm/mod.rs | 0 src/common/packages/mod.rs | 1 + src/linux/mod.rs | 2 +- src/macos/mod.rs | 2 +- src/windows/mod.rs | 2 +- 7 files changed, 5 insertions(+), 4 deletions(-) rename src/common/{ => packages}/fvm/git.rs (100%) rename src/common/{ => packages}/fvm/mod.rs (100%) create mode 100644 src/common/packages/mod.rs diff --git a/src/common/mod.rs b/src/common/mod.rs index 208b49b..228591f 100644 --- a/src/common/mod.rs +++ b/src/common/mod.rs @@ -2,4 +2,4 @@ pub static TEMP_FOLDER: &str = "temp"; pub static INSTALL_FOLDER: &str = ".autoconfig"; pub mod utils; -pub mod fvm; \ No newline at end of file +pub mod packages; \ No newline at end of file diff --git a/src/common/fvm/git.rs b/src/common/packages/fvm/git.rs similarity index 100% rename from src/common/fvm/git.rs rename to src/common/packages/fvm/git.rs diff --git a/src/common/fvm/mod.rs b/src/common/packages/fvm/mod.rs similarity index 100% rename from src/common/fvm/mod.rs rename to src/common/packages/fvm/mod.rs diff --git a/src/common/packages/mod.rs b/src/common/packages/mod.rs new file mode 100644 index 0000000..4d201eb --- /dev/null +++ b/src/common/packages/mod.rs @@ -0,0 +1 @@ +pub mod fvm; \ No newline at end of file diff --git a/src/linux/mod.rs b/src/linux/mod.rs index 4f23280..a43b983 100644 --- a/src/linux/mod.rs +++ b/src/linux/mod.rs @@ -25,7 +25,7 @@ pub fn start() { let opt = Opt::from_args(); for tool in &opt.tools { let result = match tool { - Tool::Fvm => super::common::fvm::install() + Tool::Fvm => super::common::packages::fvm::install() }; if let Err(err) = result { diff --git a/src/macos/mod.rs b/src/macos/mod.rs index 4f23280..a43b983 100644 --- a/src/macos/mod.rs +++ b/src/macos/mod.rs @@ -25,7 +25,7 @@ pub fn start() { let opt = Opt::from_args(); for tool in &opt.tools { let result = match tool { - Tool::Fvm => super::common::fvm::install() + Tool::Fvm => super::common::packages::fvm::install() }; if let Err(err) = result { diff --git a/src/windows/mod.rs b/src/windows/mod.rs index 4f23280..a43b983 100644 --- a/src/windows/mod.rs +++ b/src/windows/mod.rs @@ -25,7 +25,7 @@ pub fn start() { let opt = Opt::from_args(); for tool in &opt.tools { let result = match tool { - Tool::Fvm => super::common::fvm::install() + Tool::Fvm => super::common::packages::fvm::install() }; if let Err(err) = result {