From 7505b79a817381ed9e61b6b7ab6fdcab9f049ce1 Mon Sep 17 00:00:00 2001 From: Michal Date: Sat, 23 Jul 2022 04:31:56 +0100 Subject: [PATCH] Alright I'm stopping myself here --- src/args.rs | 2 +- src/main.rs | 1 + src/operations/info.rs | 6 ++++++ src/operations/mod.rs | 2 ++ 4 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 src/operations/info.rs diff --git a/src/args.rs b/src/args.rs index e6955b0..3601042 100644 --- a/src/args.rs +++ b/src/args.rs @@ -47,7 +47,7 @@ pub enum Operation { /// Shows an info panel/overview about the current repository #[clap(name = "info", aliases = & ["status", "s", "i"])] - Info, // TODO: Implement this + Info, /// Pulls in git repositories from mlc.toml branching from current directory #[clap(name = "pull", aliases = & ["u"])] diff --git a/src/main.rs b/src/main.rs index fd56704..0e812b8 100755 --- a/src/main.rs +++ b/src/main.rs @@ -107,5 +107,6 @@ fn main() { Operation::Config => operations::config(verbose), Operation::Prune => operations::prune(verbose), Operation::Clean => operations::clean(verbose), + Operation::Info => operations::info(verbose), } } diff --git a/src/operations/info.rs b/src/operations/info.rs new file mode 100644 index 0000000..e700e0f --- /dev/null +++ b/src/operations/info.rs @@ -0,0 +1,6 @@ +use crate::log; + +pub fn info(verbose: bool) { + log!(verbose, "Showing Info"); + unimplemented!(); +} \ No newline at end of file diff --git a/src/operations/mod.rs b/src/operations/mod.rs index 6588e22..775ed89 100644 --- a/src/operations/mod.rs +++ b/src/operations/mod.rs @@ -4,6 +4,7 @@ pub use clone::*; pub use config::*; pub use prune::*; pub use pull::*; +pub use info::*; mod build; mod clean; @@ -11,3 +12,4 @@ mod clone; mod config; mod prune; mod pull; +mod info;