chore: replace strings with macros
This commit is contained in:
parent
758de0a805
commit
30625ba3ba
12
src/main.rs
12
src/main.rs
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue