notes: open: Add cli spec
This commit is contained in:
parent
5dbf82eb29
commit
1d53b2d8ec
1 changed files with 39 additions and 0 deletions
39
etc/cli.yml
39
etc/cli.yml
|
@ -314,6 +314,45 @@ subcommands:
|
||||||
required: false
|
required: false
|
||||||
takes_value: true
|
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:
|
- list:
|
||||||
about: List notes
|
about: List notes
|
||||||
version: 0.1
|
version: 0.1
|
||||||
|
|
Loading…
Reference in a new issue