diff options
author | Nora <nora.widdecke@tu-bs.de> | 2019-02-25 10:06:24 +0100 |
---|---|---|
committer | Nora <nora.widdecke@tu-bs.de> | 2019-02-25 10:06:24 +0100 |
commit | 34d6d04a8071121ad191d0cf5965fac0f2ae87be (patch) | |
tree | 33f5d057db27dccf2caaf729614277e80976b015 /src/cli.rs | |
parent | 4ef38c46d55b08d49375adcbcde8211714019c4b (diff) |
structopt get
Diffstat (limited to 'src/cli.rs')
-rw-r--r-- | src/cli.rs | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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")] |