]> git.r.bdr.sh - rbdr/blog/blobdiff - src/command/version.rs
Add part of the implementation for add
[rbdr/blog] / src / command / version.rs
index fae75961bc79957394ad67ea92679a9c21729164..e566c5a4e3cfa6ece8edb957f10a4ca372684669 100644 (file)
@@ -1,4 +1,5 @@
 use std::io::Result;
+use crate::configuration::Configuration;
 
 pub struct Version;
 
@@ -13,8 +14,9 @@ impl super::Command for Version {
         vec![]
     }
 
-    fn execute(&self, input: Option<&String>) -> Result<()> {
-        println!("Version: {:?}!", input);
+    fn execute(&self, _: Option<&String>, _: &Configuration, _: &String) -> Result<()> {
+        let version = env!("CARGO_PKG_VERSION");
+        println!("{}", version);
         return Ok(())
     }