summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-01-05 21:17:26 +0100
committerMatthias Beyer <mail@beyermatthias.de>2016-01-05 21:17:29 +0100
commit58d303be02eae3136cd6d4b5f74eec283ad354a2 (patch)
treef505abece2324aa8cd365429306212dc79a451a7 /etc
parentfc7f2c0bb1ae661237083c98f9560c0b7099d89c (diff)
Add CLI specification
Diffstat (limited to 'etc')
-rw-r--r--etc/cli.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/etc/cli.yml b/etc/cli.yml
index a7b7de64..553a8f52 100644
--- a/etc/cli.yml
+++ b/etc/cli.yml
@@ -314,6 +314,45 @@ subcommands:
required: false
takes_value: true
+ - show:
+ about: Show note(s)
+ version: 0.1
+ author: Matthias Beyer <mail@beyermatthias.de>
+ args:
+ - plain:
+ long: plain
+ short: p
+ help: Show notes plain (like with 'cat')
+ required: false
+ takes_value: false
+
+ - id:
+ long: id
+ help: Open note with this ID
+ required: false
+ takes_value: true
+
+ - namegrep:
+ short: n
+ long: name
+ help: Open where name matches this regex
+ required: false
+ takes_value: true
+
+ - grep:
+ short: g
+ long: grep
+ help: Open where grep with regex finds something
+ required: false
+ takes_value: true
+
+ - tags:
+ short: t
+ long: tags
+ help: Open all notes with these tags
+ required: false
+ takes_value: true
+
- open:
about: Open notes as HTML page in browser (via XDG-open)
version: 0.1