~gbmor/clinte

929b5dc0e3c01bb6c9ca4002c6b907dae508ec23 — Ben Morrison 2 years ago 35e7aa0
enabled hints for cli args, changed db location
3 files changed, 7 insertions(+), 10 deletions(-)

M Cargo.lock
M Cargo.toml
M src/db.rs
M Cargo.lock => Cargo.lock +0 -7
@@ 115,7 115,6 @@ dependencies = [
 "strsim 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
 "textwrap 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
 "unicode-width 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
 "vec_map 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)",
]

[[package]]


@@ 461,11 460,6 @@ version = "0.2.7"
source = "registry+https://github.com/rust-lang/crates.io-index"

[[package]]
name = "vec_map"
version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"

[[package]]
name = "winapi"
version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"


@@ 543,7 537,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
"checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc"
"checksum users 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)" = "c72f4267aea0c3ec6d07eaabea6ead7c5ddacfafc5e22bcf8d186706851fb4cf"
"checksum vcpkg 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)" = "33dd455d0f96e90a75803cfeb7f948768c08d70a6de9a8d2362461935698bf95"
"checksum vec_map 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "05c78687fb1a80548ae3250346c3db86a80a7cdd77bda190189f2d0a0987c81a"
"checksum winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)" = "f10e386af2b13e47c89e7236a7a14a086791a2b88ebad6df9bf42040195cf770"
"checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
"checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"

M Cargo.toml => Cargo.toml +6 -2
@@ 8,8 8,12 @@ edition = "2018"

[dependencies]
chrono = "^0.4"
clap = "^2.33"
log = "^0.4"
rusqlite = "^0.20"
simplelog = "^0.7"
users = "^0.9"
\ No newline at end of file
users = "^0.9"

[dependencies.clap]
version = "^2.33"
default-features = false
features = [ "suggestions", "color" ]
\ No newline at end of file

M src/db.rs => src/db.rs +1 -1
@@ 2,7 2,7 @@ use log::info;
use rusqlite;
use std::time;

const DB_PATH: &str = "/tmp/clinte.db";
const DB_PATH: &str = "/usr/local/clinte/clinte.db";

#[derive(Debug)]
pub struct Post {