summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
authorNora <nora.widdecke@tu-bs.de>2019-02-25 10:06:24 +0100
committerNora <nora.widdecke@tu-bs.de>2019-02-25 10:06:24 +0100
commit34d6d04a8071121ad191d0cf5965fac0f2ae87be (patch)
tree33f5d057db27dccf2caaf729614277e80976b015 /src/cli.rs
parent4ef38c46d55b08d49375adcbcde8211714019c4b (diff)
structopt get
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 3470bf5..d7f3c61 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -32,6 +32,9 @@ pub enum Command {
/// Edit event
#[structopt(name = "edit", author = "")]
Edit,
+ /// Get info about the calendar data
+ #[structopt(name = "get", author = "")]
+ Get(Get),
/// Rebuild index
#[structopt(name = "index", author = "")]
Index(Index),
@@ -81,6 +84,21 @@ arg_enum! {
}
#[derive(Debug, StructOpt)]
+pub struct Get {
+ /// Show information about this
+ #[structopt(name = "query", raw(possible_values = "&GetArgs::variants()"))]
+ pub query: GetArgs,
+}
+
+
+arg_enum! {
+#[derive(Debug)]
+ pub enum GetArgs{
+ calendars,
+ }
+}
+
+#[derive(Debug, StructOpt)]
pub struct Index {
/// Rebuild index
#[structopt(short = "r", long = "reindex")]