set name and description from carto.toml

This commit is contained in:
Abraham Toriz 2021-08-14 12:06:07 -05:00
parent 6f4bae98c5
commit 0d0e91942c
3 changed files with 9 additions and 6 deletions

2
Cargo.lock generated
View File

@ -620,7 +620,7 @@ dependencies = [
[[package]]
name = "tiempo"
version = "1.0.0"
version = "1.0.1"
dependencies = [
"ansi_term 0.12.1",
"chrono",

View File

@ -1,6 +1,6 @@
[package]
name = "tiempo"
version = "1.0.0"
version = "1.0.1"
authors = ["Abraham Toriz <categulario@gmail.com>"]
edition = "2018"
description = "A command line time tracker"

View File

@ -2,7 +2,10 @@ use std::convert::TryInto;
use std::process::exit;
use std::io;
use clap::{App, Arg, SubCommand, AppSettings, crate_version, ArgMatches};
use clap::{
App, Arg, SubCommand, AppSettings, ArgMatches, crate_version, crate_authors,
crate_description, crate_name,
};
use chrono::Utc;
use regex::Regex;
@ -109,11 +112,11 @@ fn main() {
// Now declar this app's cli
let matches = App::new("Tiempo")
.name("t")
.name(crate_name!())
.setting(AppSettings::SubcommandRequired)
.version(crate_version!())
.author("Abraham Toriz <categulario@gmail.com>")
.about("Tiempo helps you keep track of time spent in different activities")
.author(crate_authors!())
.about(crate_description!())
.subcommand(SubCommand::with_name("archive")
.visible_alias("a")