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;