+use crate::configuration::Configuration;
use std::io::Result;
pub struct Version;
vec![]
}
- fn execute(&self, input: Option<&String>) -> Result<()> {
- println!("Version: {:?}!", input);
- return Ok(())
+ fn execute(&self, _: Option<&String>, _: &Configuration, _: &str) -> Result<()> {
+ let version = env!("CARGO_PKG_VERSION");
+ println!("{version}");
+ Ok(())
}
fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {