chore: replace strings with macros

This commit is contained in:
Rekai Nyangadzayi Musuka 2021-04-04 18:01:09 -05:00
parent 758de0a805
commit 30625ba3ba
1 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
use clap::{App, Arg, SubCommand};
use clap::{crate_authors, crate_description, crate_name, crate_version, App, Arg, SubCommand};
use directories::ProjectDirs;
use domasi::Alert;
use domasi::Domasi;
@ -6,10 +6,10 @@ use std::fs;
use std::path::PathBuf;
fn main() {
let app = App::new("Domasi")
.version("0.1.0")
.author("Rekai Musuka <rekai@musuka.dev>")
.about("CLI Pomodoro Timer")
let app = App::new(crate_name!())
.version(crate_version!())
.author(crate_authors!())
.about(crate_description!())
.arg(
Arg::with_name("create-alert-dir")
.short("C")
@ -30,7 +30,7 @@ fn main() {
}
match matches.subcommand() {
("start", Some(_sub_match)) => {
("start", Some(_)) => {
let mut domasi: Domasi = Default::default();
match get_alert() {