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