summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNora <nora.widdecke@tu-bs.de>2019-02-25 14:54:46 +0100
committerNora <nora.widdecke@tu-bs.de>2019-02-25 14:54:46 +0100
commit50cfd07a1725fe3a62258334a097d5c859220ad0 (patch)
tree8ed1d66e3c907a93fc931c0fd99bb4ae379a0400 /src
parent259ca5427f374ceb2dfaacefc0f66e0ae8e14526 (diff)
index: fix test
Diffstat (limited to 'src')
-rw-r--r--src/actions/index/action.rs4
-rw-r--r--src/cli.rs7
2 files changed, 5 insertions, 6 deletions
diff --git a/src/actions/index/action.rs b/src/actions/index/action.rs
index 62cdf32..01cf098 100644
--- a/src/actions/index/action.rs
+++ b/src/actions/index/action.rs
@@ -167,12 +167,10 @@ mod integration {
use structopt::StructOpt;
#[test]
- #[ignore]
fn test_index() {
let testdir = prepare_testdir("testdir");
- //TODO This is not thread safe
- let args = CommandLine::from_iter(&["index"]);
+ let args = CommandLine::from_iter(&["khaleesi", "index"]);
if let Index(x) = args.cmd {
action_index(&x).unwrap();
}
diff --git a/src/cli.rs b/src/cli.rs
index 77e1177..f92b4a0 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -1,13 +1,14 @@
-use structopt::StructOpt;
use std::path::PathBuf;
+use structopt::StructOpt;
#[derive(Debug, StructOpt)]
#[structopt(
author = "",
- name = "khalessi",
+ name = "khaleessi",
about = "Command line calendar tool.",
- raw(setting = "structopt::clap::AppSettings::VersionlessSubcommands"),
+ raw(setting = "structopt::clap::AppSettings::VersionlessSubcommands")
)]
+
pub struct CommandLine {
/// verbosity
#[structopt(short = "v", parse(from_occurrences))]