Merge pull request #1214 from matthiasbeyer/remove-dependency-version
Remove dependency "version"
This commit is contained in:
commit
ffe97cd7e8
48 changed files with 29 additions and 75 deletions
|
@ -22,7 +22,6 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.3"
|
||||||
version = "2.0.1"
|
|
||||||
url = "1.2"
|
url = "1.2"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
toml-query = "0.4"
|
toml-query = "0.4"
|
||||||
|
|
|
@ -35,8 +35,6 @@
|
||||||
extern crate clap;
|
extern crate clap;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate log;
|
extern crate log;
|
||||||
#[macro_use]
|
|
||||||
extern crate version;
|
|
||||||
|
|
||||||
extern crate libimagentryannotation;
|
extern crate libimagentryannotation;
|
||||||
extern crate libimagentryedit;
|
extern crate libimagentryedit;
|
||||||
|
@ -62,7 +60,7 @@ mod ui;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let rt = generate_runtime_setup("imag-annotation",
|
let rt = generate_runtime_setup("imag-annotation",
|
||||||
&version!()[..],
|
env!("CARGO_PKG_VERSION"),
|
||||||
"Add annotations to entries",
|
"Add annotations to entries",
|
||||||
ui::build_ui);
|
ui::build_ui);
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,6 @@ homepage = "http://imag-pim.org"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
version = "2.0.1"
|
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
toml-query = "0.4"
|
toml-query = "0.4"
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
extern crate clap;
|
extern crate clap;
|
||||||
extern crate toml;
|
extern crate toml;
|
||||||
extern crate toml_query;
|
extern crate toml_query;
|
||||||
#[macro_use] extern crate version;
|
|
||||||
|
|
||||||
extern crate libimagrt;
|
extern crate libimagrt;
|
||||||
extern crate libimagerror;
|
extern crate libimagerror;
|
||||||
|
@ -95,7 +94,7 @@ impl<'a> From<FileLockEntry<'a>> for Diagnostic {
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let rt = generate_runtime_setup("imag-diagnostics",
|
let rt = generate_runtime_setup("imag-diagnostics",
|
||||||
&version!()[..],
|
&env!("CARGO_PKG_VERSION")[..],
|
||||||
"Print diagnostics about imag and the imag store",
|
"Print diagnostics about imag and the imag store",
|
||||||
ui::build_ui);
|
ui::build_ui);
|
||||||
|
|
||||||
|
@ -153,7 +152,7 @@ fn main() {
|
||||||
|
|
||||||
let n = diags.len();
|
let n = diags.len();
|
||||||
|
|
||||||
println!("imag version {}", version!());
|
println!("imag version {}", env!("CARGO_PKG_VERSION"));
|
||||||
println!("");
|
println!("");
|
||||||
println!("{} entries", n);
|
println!("{} entries", n);
|
||||||
for (k, v) in version_counts {
|
for (k, v) in version_counts {
|
||||||
|
|
|
@ -34,7 +34,6 @@
|
||||||
|
|
||||||
extern crate clap;
|
extern crate clap;
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
#[macro_use] extern crate version;
|
|
||||||
|
|
||||||
extern crate libimagentryedit;
|
extern crate libimagentryedit;
|
||||||
extern crate libimagerror;
|
extern crate libimagerror;
|
||||||
|
@ -54,7 +53,7 @@ mod ui;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let rt = generate_runtime_setup("imag-edit",
|
let rt = generate_runtime_setup("imag-edit",
|
||||||
&version!()[..],
|
env!("CARGO_PKG_VERSION"),
|
||||||
"Edit store entries with $EDITOR",
|
"Edit store entries with $EDITOR",
|
||||||
ui::build_ui);
|
ui::build_ui);
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.3"
|
||||||
version = "2.0.1"
|
|
||||||
url = "1.2"
|
url = "1.2"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
toml-query = "^0.4"
|
toml-query = "^0.4"
|
||||||
|
|
|
@ -35,8 +35,6 @@
|
||||||
extern crate clap;
|
extern crate clap;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate log;
|
extern crate log;
|
||||||
#[macro_use]
|
|
||||||
extern crate version;
|
|
||||||
|
|
||||||
extern crate libimagentrygps;
|
extern crate libimagentrygps;
|
||||||
extern crate libimagrt;
|
extern crate libimagrt;
|
||||||
|
@ -60,7 +58,7 @@ mod ui;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let rt = generate_runtime_setup("imag-gps",
|
let rt = generate_runtime_setup("imag-gps",
|
||||||
&version!()[..],
|
env!("CARGO_PKG_VERSION"),
|
||||||
"Add GPS coordinates to entries",
|
"Add GPS coordinates to entries",
|
||||||
ui::build_ui);
|
ui::build_ui);
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,6 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
version = "2.0.1"
|
|
||||||
regex = "0.2"
|
regex = "0.2"
|
||||||
|
|
||||||
libimagstore = { version = "0.6.0", path = "../../../lib/core/libimagstore" }
|
libimagstore = { version = "0.6.0", path = "../../../lib/core/libimagstore" }
|
||||||
|
|
|
@ -34,7 +34,6 @@
|
||||||
|
|
||||||
extern crate clap;
|
extern crate clap;
|
||||||
extern crate regex;
|
extern crate regex;
|
||||||
#[macro_use] extern crate version;
|
|
||||||
|
|
||||||
extern crate libimagstore;
|
extern crate libimagstore;
|
||||||
extern crate libimagrt;
|
extern crate libimagrt;
|
||||||
|
@ -56,7 +55,7 @@ struct Options {
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let rt = generate_runtime_setup("imag-grep",
|
let rt = generate_runtime_setup("imag-grep",
|
||||||
&version!()[..],
|
env!("CARGO_PKG_VERSION"),
|
||||||
"grep through entries text",
|
"grep through entries text",
|
||||||
ui::build_ui);
|
ui::build_ui);
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,6 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
version = "2.0.1"
|
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
|
|
|
@ -33,7 +33,6 @@
|
||||||
)]
|
)]
|
||||||
|
|
||||||
extern crate clap;
|
extern crate clap;
|
||||||
#[macro_use] extern crate version;
|
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
extern crate toml;
|
extern crate toml;
|
||||||
|
|
|
@ -21,7 +21,7 @@ use clap::{Arg, App};
|
||||||
|
|
||||||
pub fn build_ui<'a>() -> App<'a, 'a> {
|
pub fn build_ui<'a>() -> App<'a, 'a> {
|
||||||
App::new("imag-init")
|
App::new("imag-init")
|
||||||
.version(&version!()[..])
|
.version(env!("CARGO_PKG_VERSION"))
|
||||||
.author("Matthias Beyer <mail@beyermatthias.de>")
|
.author("Matthias Beyer <mail@beyermatthias.de>")
|
||||||
.about("Initialize a ~/.imag repository. Optionally with git")
|
.about("Initialize a ~/.imag repository. Optionally with git")
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.3"
|
||||||
version = "2.0.1"
|
|
||||||
url = "1.5"
|
url = "1.5"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
toml-query = "^0.4"
|
toml-query = "^0.4"
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
extern crate clap;
|
extern crate clap;
|
||||||
extern crate url;
|
extern crate url;
|
||||||
#[macro_use] extern crate version;
|
|
||||||
#[cfg(test)] extern crate toml;
|
#[cfg(test)] extern crate toml;
|
||||||
#[cfg(test)] extern crate toml_query;
|
#[cfg(test)] extern crate toml_query;
|
||||||
|
|
||||||
|
@ -73,7 +72,7 @@ use ui::build_ui;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let rt = generate_runtime_setup("imag-link",
|
let rt = generate_runtime_setup("imag-link",
|
||||||
&version!()[..],
|
env!("CARGO_PKG_VERSION"),
|
||||||
"Link entries",
|
"Link entries",
|
||||||
build_ui);
|
build_ui);
|
||||||
if rt.cli().is_present("check-consistency") {
|
if rt.cli().is_present("check-consistency") {
|
||||||
|
|
|
@ -20,7 +20,6 @@ is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
|
||||||
maintenance = { status = "actively-developed" }
|
maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
version = "2.0"
|
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.3"
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,6 @@
|
||||||
)]
|
)]
|
||||||
|
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
#[macro_use] extern crate version;
|
|
||||||
extern crate clap;
|
extern crate clap;
|
||||||
|
|
||||||
extern crate libimagrt;
|
extern crate libimagrt;
|
||||||
|
@ -51,7 +50,7 @@ use libimagstore::storeid::StoreId;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let rt = generate_runtime_setup("imag-mv",
|
let rt = generate_runtime_setup("imag-mv",
|
||||||
&version!()[..],
|
env!("CARGO_PKG_VERSION"),
|
||||||
"Move things around in the store",
|
"Move things around in the store",
|
||||||
build_ui);
|
build_ui);
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.3"
|
||||||
version = "2.0.1"
|
|
||||||
|
|
||||||
libimagrt = { version = "0.6.0", path = "../../../lib/core/libimagrt" }
|
libimagrt = { version = "0.6.0", path = "../../../lib/core/libimagrt" }
|
||||||
libimagerror = { version = "0.6.0", path = "../../../lib/core/libimagerror" }
|
libimagerror = { version = "0.6.0", path = "../../../lib/core/libimagerror" }
|
||||||
|
|
|
@ -33,7 +33,6 @@
|
||||||
)]
|
)]
|
||||||
|
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
#[macro_use] extern crate version;
|
|
||||||
extern crate clap;
|
extern crate clap;
|
||||||
|
|
||||||
extern crate libimagrt;
|
extern crate libimagrt;
|
||||||
|
@ -58,7 +57,7 @@ use libimagrt::runtime::Runtime;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let rt = generate_runtime_setup("imag-ref",
|
let rt = generate_runtime_setup("imag-ref",
|
||||||
&version!()[..],
|
env!("CARGO_PKG_VERSION"),
|
||||||
"Reference files outside of the store",
|
"Reference files outside of the store",
|
||||||
build_ui);
|
build_ui);
|
||||||
rt.cli()
|
rt.cli()
|
||||||
|
|
|
@ -22,7 +22,6 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.3"
|
||||||
version = "2.0.1"
|
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
error-chain = "0.11"
|
error-chain = "0.11"
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,6 @@ extern crate clap;
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
extern crate toml;
|
extern crate toml;
|
||||||
#[cfg(test)] extern crate toml_query;
|
#[cfg(test)] extern crate toml_query;
|
||||||
#[macro_use] extern crate version;
|
|
||||||
#[macro_use] extern crate error_chain;
|
#[macro_use] extern crate error_chain;
|
||||||
|
|
||||||
extern crate libimagrt;
|
extern crate libimagrt;
|
||||||
|
@ -78,7 +77,7 @@ use ids::ids;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let mut rt = generate_runtime_setup("imag-store",
|
let mut rt = generate_runtime_setup("imag-store",
|
||||||
&version!()[..],
|
env!("CARGO_PKG_VERSION"),
|
||||||
"Direct interface to the store. Use with great care!",
|
"Direct interface to the store. Use with great care!",
|
||||||
build_ui);
|
build_ui);
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.3"
|
||||||
version = "2.0.1"
|
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
|
|
||||||
libimagstore = { version = "0.6.0", path = "../../../lib/core/libimagstore" }
|
libimagstore = { version = "0.6.0", path = "../../../lib/core/libimagstore" }
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
|
|
||||||
extern crate clap;
|
extern crate clap;
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
#[macro_use] extern crate version;
|
|
||||||
|
|
||||||
#[cfg(test)] extern crate toml;
|
#[cfg(test)] extern crate toml;
|
||||||
|
|
||||||
|
@ -59,7 +58,7 @@ use ui::build_ui;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let rt = generate_runtime_setup("imag-store",
|
let rt = generate_runtime_setup("imag-store",
|
||||||
&version!()[..],
|
env!("CARGO_PKG_VERSION"),
|
||||||
"Direct interface to the store. Use with great care!",
|
"Direct interface to the store. Use with great care!",
|
||||||
build_ui);
|
build_ui);
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,6 @@ clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.3"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
toml-query = "^0.4"
|
toml-query = "^0.4"
|
||||||
version = "2.0.1"
|
|
||||||
handlebars = "0.29.0"
|
handlebars = "0.29.0"
|
||||||
tempfile = "2.1"
|
tempfile = "2.1"
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,6 @@
|
||||||
|
|
||||||
extern crate clap;
|
extern crate clap;
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
#[macro_use] extern crate version;
|
|
||||||
extern crate handlebars;
|
extern crate handlebars;
|
||||||
extern crate tempfile;
|
extern crate tempfile;
|
||||||
extern crate toml;
|
extern crate toml;
|
||||||
|
@ -67,7 +66,7 @@ use ui::build_ui;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let rt = generate_runtime_setup( "imag-view",
|
let rt = generate_runtime_setup( "imag-view",
|
||||||
&version!()[..],
|
env!("CARGO_PKG_VERSION"),
|
||||||
"View entries (readonly)",
|
"View entries (readonly)",
|
||||||
build_ui);
|
build_ui);
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@ is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
|
||||||
maintenance = { status = "actively-developed" }
|
maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
version = "2.0"
|
|
||||||
walkdir = "1"
|
walkdir = "1"
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.3"
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
extern crate clap;
|
extern crate clap;
|
||||||
#[macro_use] extern crate version;
|
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
extern crate walkdir;
|
extern crate walkdir;
|
||||||
extern crate toml;
|
extern crate toml;
|
||||||
|
@ -118,7 +117,7 @@ fn get_commands() -> Vec<String> {
|
||||||
fn main() {
|
fn main() {
|
||||||
// Initialize the Runtime and build the CLI
|
// Initialize the Runtime and build the CLI
|
||||||
let appname = "imag";
|
let appname = "imag";
|
||||||
let version = &version!();
|
let version = env!("CARGO_PKG_VERSION");
|
||||||
let about = "imag - the PIM suite for the commandline";
|
let about = "imag - the PIM suite for the commandline";
|
||||||
let commands = get_commands();
|
let commands = get_commands();
|
||||||
let helptext = help_text(commands.clone());
|
let helptext = help_text(commands.clone());
|
||||||
|
@ -152,7 +151,7 @@ fn main() {
|
||||||
|
|
||||||
if matches.is_present("version") {
|
if matches.is_present("version") {
|
||||||
debug!("Showing version");
|
debug!("Showing version");
|
||||||
println!("imag {}", &version!()[..]);
|
println!("imag {}", env!("CARGO_PKG_VERSION"));
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.3"
|
||||||
version = "2.0.1"
|
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
toml-query = "^0.4"
|
toml-query = "^0.4"
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,6 @@
|
||||||
|
|
||||||
extern crate clap;
|
extern crate clap;
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
#[macro_use] extern crate version;
|
|
||||||
extern crate toml;
|
extern crate toml;
|
||||||
extern crate toml_query;
|
extern crate toml_query;
|
||||||
|
|
||||||
|
@ -62,7 +61,7 @@ use ui::build_ui;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let rt = generate_runtime_setup("imag-bookmark",
|
let rt = generate_runtime_setup("imag-bookmark",
|
||||||
&version!()[..],
|
env!("CARGO_PKG_VERSION"),
|
||||||
"Bookmark collection tool",
|
"Bookmark collection tool",
|
||||||
build_ui);
|
build_ui);
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,6 @@ homepage = "http://imag-pim.org"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.3"
|
||||||
version = "2.0.1"
|
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
toml-query = "^0.3.1"
|
toml-query = "^0.3.1"
|
||||||
handlebars = "0.29"
|
handlebars = "0.29"
|
||||||
|
|
|
@ -34,7 +34,6 @@
|
||||||
|
|
||||||
extern crate clap;
|
extern crate clap;
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
#[macro_use] extern crate version;
|
|
||||||
#[macro_use] extern crate vobject;
|
#[macro_use] extern crate vobject;
|
||||||
extern crate toml;
|
extern crate toml;
|
||||||
extern crate toml_query;
|
extern crate toml_query;
|
||||||
|
@ -81,7 +80,7 @@ use create::create;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let rt = generate_runtime_setup("imag-contact",
|
let rt = generate_runtime_setup("imag-contact",
|
||||||
&version!()[..],
|
env!("CARGO_PKG_VERSION"),
|
||||||
"Contact management tool",
|
"Contact management tool",
|
||||||
build_ui);
|
build_ui);
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,6 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
chrono = "0.4"
|
chrono = "0.4"
|
||||||
version = "2.0"
|
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.3"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
|
|
|
@ -33,7 +33,6 @@
|
||||||
)]
|
)]
|
||||||
|
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
#[macro_use] extern crate version;
|
|
||||||
extern crate clap;
|
extern crate clap;
|
||||||
extern crate chrono;
|
extern crate chrono;
|
||||||
extern crate toml;
|
extern crate toml;
|
||||||
|
@ -70,7 +69,7 @@ use view::view;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let name = "imag-diary";
|
let name = "imag-diary";
|
||||||
let version = &version!()[..];
|
let version = env!("CARGO_PKG_VERSION");
|
||||||
let about = "Personal Diary/Diaries";
|
let about = "Personal Diary/Diaries";
|
||||||
let ui = build_ui(Runtime::get_default_cli_builder(name, version, about));
|
let ui = build_ui(Runtime::get_default_cli_builder(name, version, about));
|
||||||
let rt = {
|
let rt = {
|
||||||
|
|
|
@ -15,7 +15,6 @@ homepage = "http://imag-pim.org"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
chrono = "0.4"
|
chrono = "0.4"
|
||||||
version = "2.0"
|
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.3"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
|
|
|
@ -34,7 +34,6 @@
|
||||||
|
|
||||||
extern crate clap;
|
extern crate clap;
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
#[macro_use] extern crate version;
|
|
||||||
extern crate toml;
|
extern crate toml;
|
||||||
extern crate toml_query;
|
extern crate toml_query;
|
||||||
extern crate kairos;
|
extern crate kairos;
|
||||||
|
@ -67,7 +66,7 @@ mod ui;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let rt = generate_runtime_setup("imag-habit",
|
let rt = generate_runtime_setup("imag-habit",
|
||||||
&version!()[..],
|
env!("CARGO_PKG_VERSION"),
|
||||||
"Habit tracking tool",
|
"Habit tracking tool",
|
||||||
ui::build_ui);
|
ui::build_ui);
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.3"
|
||||||
version = "2.0.1"
|
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
toml-query = "^0.4"
|
toml-query = "^0.4"
|
||||||
is-match = "0.1"
|
is-match = "0.1"
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
extern crate clap;
|
extern crate clap;
|
||||||
#[macro_use] extern crate is_match;
|
#[macro_use] extern crate is_match;
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
#[macro_use] extern crate version;
|
|
||||||
extern crate toml;
|
extern crate toml;
|
||||||
extern crate toml_query;
|
extern crate toml_query;
|
||||||
|
|
||||||
|
@ -58,7 +57,7 @@ use toml::Value;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let rt = generate_runtime_setup("imag-log",
|
let rt = generate_runtime_setup("imag-log",
|
||||||
&version!()[..],
|
env!("CARGO_PKG_VERSION"),
|
||||||
"Overlay to imag-diary to 'log' single lines of text",
|
"Overlay to imag-diary to 'log' single lines of text",
|
||||||
build_ui);
|
build_ui);
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,6 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.3"
|
||||||
version = "2.0.1"
|
|
||||||
|
|
||||||
libimagrt = { version = "0.6.0", path = "../../../lib/core/libimagrt" }
|
libimagrt = { version = "0.6.0", path = "../../../lib/core/libimagrt" }
|
||||||
libimagerror = { version = "0.6.0", path = "../../../lib/core/libimagerror" }
|
libimagerror = { version = "0.6.0", path = "../../../lib/core/libimagerror" }
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
|
|
||||||
extern crate clap;
|
extern crate clap;
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
#[macro_use] extern crate version;
|
|
||||||
|
|
||||||
extern crate libimagrt;
|
extern crate libimagrt;
|
||||||
extern crate libimagmail;
|
extern crate libimagmail;
|
||||||
|
@ -38,7 +37,7 @@ use ui::build_ui;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let rt = generate_runtime_setup("imag-mail",
|
let rt = generate_runtime_setup("imag-mail",
|
||||||
&version!()[..],
|
env!("CARGO_PKG_VERSION"),
|
||||||
"Mail collection tool",
|
"Mail collection tool",
|
||||||
build_ui);
|
build_ui);
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.3"
|
||||||
version = "2.0.1"
|
|
||||||
itertools = "0.7"
|
itertools = "0.7"
|
||||||
|
|
||||||
libimagrt = { version = "0.6.0", path = "../../../lib/core/libimagrt" }
|
libimagrt = { version = "0.6.0", path = "../../../lib/core/libimagrt" }
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
|
|
||||||
extern crate clap;
|
extern crate clap;
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
#[macro_use] extern crate version;
|
|
||||||
extern crate itertools;
|
extern crate itertools;
|
||||||
|
|
||||||
extern crate libimagnotes;
|
extern crate libimagnotes;
|
||||||
|
@ -45,7 +44,7 @@ use ui::build_ui;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let rt = generate_runtime_setup("imag-notes",
|
let rt = generate_runtime_setup("imag-notes",
|
||||||
&version!()[..],
|
env!("CARGO_PKG_VERSION"),
|
||||||
"Note taking helper",
|
"Note taking helper",
|
||||||
build_ui);
|
build_ui);
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.3"
|
||||||
version = "2.0.1"
|
|
||||||
chrono = "0.4"
|
chrono = "0.4"
|
||||||
filters = "0.2"
|
filters = "0.2"
|
||||||
itertools = "0.7"
|
itertools = "0.7"
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
extern crate log;
|
extern crate log;
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate version;
|
|
||||||
|
|
||||||
extern crate clap;
|
extern crate clap;
|
||||||
extern crate chrono;
|
extern crate chrono;
|
||||||
|
@ -59,7 +58,7 @@ use libimagrt::setup::generate_runtime_setup;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let rt = generate_runtime_setup("imag-timetrack",
|
let rt = generate_runtime_setup("imag-timetrack",
|
||||||
&version!()[..],
|
env!("CARGO_PKG_VERSION"),
|
||||||
"Time tracking module",
|
"Time tracking module",
|
||||||
build_ui);
|
build_ui);
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,6 @@ log = "0.3"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
toml-query = "^0.4"
|
toml-query = "^0.4"
|
||||||
is-match = "0.1"
|
is-match = "0.1"
|
||||||
version = "2.0.1"
|
|
||||||
|
|
||||||
libimagrt = { version = "0.6.0", path = "../../../lib/core/libimagrt" }
|
libimagrt = { version = "0.6.0", path = "../../../lib/core/libimagrt" }
|
||||||
libimagerror = { version = "0.6.0", path = "../../../lib/core/libimagerror" }
|
libimagerror = { version = "0.6.0", path = "../../../lib/core/libimagerror" }
|
||||||
|
|
|
@ -22,7 +22,6 @@ extern crate clap;
|
||||||
extern crate toml;
|
extern crate toml;
|
||||||
extern crate toml_query;
|
extern crate toml_query;
|
||||||
#[macro_use] extern crate is_match;
|
#[macro_use] extern crate is_match;
|
||||||
#[macro_use] extern crate version;
|
|
||||||
|
|
||||||
extern crate libimagrt;
|
extern crate libimagrt;
|
||||||
extern crate libimagerror;
|
extern crate libimagerror;
|
||||||
|
@ -43,7 +42,7 @@ mod ui;
|
||||||
use ui::build_ui;
|
use ui::build_ui;
|
||||||
fn main() {
|
fn main() {
|
||||||
let rt = generate_runtime_setup("imag-todo",
|
let rt = generate_runtime_setup("imag-todo",
|
||||||
&version!()[..],
|
env!("CARGO_PKG_VERSION"),
|
||||||
"Interface with taskwarrior",
|
"Interface with taskwarrior",
|
||||||
build_ui);
|
build_ui);
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,6 @@ log = "0.3"
|
||||||
regex = "0.2"
|
regex = "0.2"
|
||||||
semver = "0.8"
|
semver = "0.8"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
version = "2.0.1"
|
|
||||||
walkdir = "1"
|
walkdir = "1"
|
||||||
is-match = "0.1"
|
is-match = "0.1"
|
||||||
serde = "1"
|
serde = "1"
|
||||||
|
|
|
@ -85,7 +85,7 @@ impl Mapper for JsonMapper {
|
||||||
.chain_err(|| SEK::VersionError)
|
.chain_err(|| SEK::VersionError)
|
||||||
.and_then(|doc_vers| {
|
.and_then(|doc_vers| {
|
||||||
// safe because cargo does not compile if crate version is not valid
|
// safe because cargo does not compile if crate version is not valid
|
||||||
let crate_version = ::semver::Version::parse(version!()).unwrap();
|
let crate_version = ::semver::Version::parse(env!("CARGO_PKG_VERSION")).unwrap();
|
||||||
|
|
||||||
debug!("Document version vs. own version: {doc_vers} > {crate_vers}",
|
debug!("Document version vs. own version: {doc_vers} > {crate_vers}",
|
||||||
doc_vers = doc_vers,
|
doc_vers = doc_vers,
|
||||||
|
@ -144,7 +144,7 @@ impl Mapper for JsonMapper {
|
||||||
}
|
}
|
||||||
|
|
||||||
let doc = OutDocument {
|
let doc = OutDocument {
|
||||||
version: String::from(version!()),
|
version: String::from(env!("CARGO_PKG_VERSION")),
|
||||||
store: store,
|
store: store,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,6 @@
|
||||||
)]
|
)]
|
||||||
|
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
#[macro_use] extern crate version;
|
|
||||||
extern crate glob;
|
extern crate glob;
|
||||||
#[macro_use] extern crate lazy_static;
|
#[macro_use] extern crate lazy_static;
|
||||||
extern crate regex;
|
extern crate regex;
|
||||||
|
|
|
@ -1076,7 +1076,8 @@ impl Header for Value {
|
||||||
m.insert(String::from("imag"), {
|
m.insert(String::from("imag"), {
|
||||||
let mut imag_map = BTreeMap::<String, Value>::new();
|
let mut imag_map = BTreeMap::<String, Value>::new();
|
||||||
|
|
||||||
imag_map.insert(String::from("version"), Value::String(String::from(version!())));
|
imag_map.insert(String::from("version"),
|
||||||
|
Value::String(String::from(env!("CARGO_PKG_VERSION"))));
|
||||||
|
|
||||||
Value::Table(imag_map)
|
Value::Table(imag_map)
|
||||||
});
|
});
|
||||||
|
@ -1203,7 +1204,7 @@ mod test {
|
||||||
let mut header = BTreeMap::new();
|
let mut header = BTreeMap::new();
|
||||||
let sub = {
|
let sub = {
|
||||||
let mut sub = BTreeMap::new();
|
let mut sub = BTreeMap::new();
|
||||||
sub.insert("version".into(), Value::String(String::from(version!())));
|
sub.insert("version".into(), Value::String(String::from(env!("CARGO_PKG_VERSION"))));
|
||||||
|
|
||||||
Value::Table(sub)
|
Value::Table(sub)
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue