set name and description from carto.toml
This commit is contained in:
parent
6f4bae98c5
commit
0d0e91942c
|
@ -620,7 +620,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "tiempo"
|
||||
version = "1.0.0"
|
||||
version = "1.0.1"
|
||||
dependencies = [
|
||||
"ansi_term 0.12.1",
|
||||
"chrono",
|
||||
|
|
|
@ -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"
|
||||
|
|
11
src/main.rs
11
src/main.rs
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue