Adding hands functionality
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user