Adding first block

This commit is contained in:
Daniel Tomlinson
2020-11-16 16:19:44 +00:00
parent 524f6d0ec3
commit 71357ac7ba
7 changed files with 293 additions and 0 deletions

20
src/entrypoint.rs Normal file
View File

@@ -0,0 +1,20 @@
use clap::{App, Arg};
pub fn main() {
let matches = App::new("Emojifier")
.version("1.0")
.author("Daniel T. <dtomlinson@panaetius.co.uk")
.about("Applies Emoji effects to text")
.arg(
Arg::new("input")
.required(true)
.takes_value(true)
.about("Text to emojify"),
)
.arg(
Arg::new("hands")
.long("hands")
.about("TURNS 👏 YOUR 👏 TEXT 👏 INTO 👏 THIS"),
)
.get_matches();
}

1
src/lib.rs Normal file
View File

@@ -0,0 +1 @@
pub mod entrypoint;

5
src/main.rs Normal file
View File

@@ -0,0 +1,5 @@
use emojifier;
fn main() {
emojifier::entrypoint::main();
}