summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-01-03 16:43:48 +0100
committerMatthias Beyer <mail@beyermatthias.de>2016-01-05 15:19:42 +0100
commit1d53b2d8ec4f219a96ff61aeff5d7478676b1373 (patch)
treeba95ed6b7a7d0feb13c4636776f7f7ae0a27777c /etc
parent5dbf82eb29696ed60c437dd03c530ca073828d46 (diff)
notes: open: Add cli spec
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 955c6ac7..a7b7de64 100644
--- a/etc/cli.yml
+++ b/etc/cli.yml
@@ -314,6 +314,45 @@ subcommands:
required: false
takes_value: true
+ - open:
+ about: Open notes as HTML page in browser (via XDG-open)
+ version: 0.1
+ author: Matthias Beyer <mail@beyermatthias.de>
+ args:
+ - onepage:
+ long: onepage
+ short: o
+ help: Open notes as one page
+ 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
+
- list:
about: List notes
version: 0.1