Add CLI specification
This commit is contained in:
parent
fc7f2c0bb1
commit
58d303be02
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
|
||||||
|
|
||||||
|
- 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:
|
- open:
|
||||||
about: Open notes as HTML page in browser (via XDG-open)
|
about: Open notes as HTML page in browser (via XDG-open)
|
||||||
version: 0.1
|
version: 0.1
|
||||||
|
|
Loading…
Reference in a new issue