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