Adding hands functionality

This commit is contained in:
2020-11-16 21:28:11 +00:00
parent 226c936e72
commit 56ca52fd1b
5 changed files with 229 additions and 15 deletions

View File

@@ -1,4 +1,5 @@
use clap::{App, Arg};
use prettytable::Table;
pub fn main() {
let matches = App::new("Emojifier")
@@ -21,10 +22,12 @@ pub fn main() {
.get_matches();
if let Some(input) = matches.value_of("input") {
println!("{}", crate::hands::handify(input));
}
if matches.is_present("hands") {
println!("{}", true)
if matches.is_present("hands") {
let output = crate::hands::handify(input);
let mut table = Table::new();
table.add_row(row!["Effect", "Output"]);
table.add_row(row!["Hands", output]);
table.printstd();
}
}
}