Add interface specification for the notes module
This commit is contained in:
parent
24527be3cf
commit
1de0796507
1 changed files with 75 additions and 0 deletions
75
etc/cli.yml
75
etc/cli.yml
|
@ -258,3 +258,78 @@ subcommands:
|
|||
version: 0.1
|
||||
author: Matthias Beyer <mail@beyermatthias.de>
|
||||
|
||||
- notes:
|
||||
about: Notes module
|
||||
version: 0.1
|
||||
author: Matthias Beyer <mail@beyermatthias.de>
|
||||
subcommands:
|
||||
- add:
|
||||
about: Add Note
|
||||
version: 0.1
|
||||
author: Matthias Beyer <mail@beyermatthias.de>
|
||||
args:
|
||||
- name:
|
||||
short: n
|
||||
long: name
|
||||
help: Add a name to the note
|
||||
required: false
|
||||
takes_value: true
|
||||
|
||||
- tags:
|
||||
short: t
|
||||
long: tags
|
||||
help: Add these tags to the note
|
||||
required: false
|
||||
takes_value: true
|
||||
|
||||
- list:
|
||||
about: List notes
|
||||
version: 0.1
|
||||
author: Matthias Beyer <mail@beyermatthias.de>
|
||||
args:
|
||||
- namegrep:
|
||||
short: n
|
||||
long: name
|
||||
help: Filter for name which matches this regex
|
||||
required: false
|
||||
takes_value: true
|
||||
|
||||
- grep:
|
||||
short: g
|
||||
long: grep
|
||||
help: grep with regex
|
||||
required: false
|
||||
takes_value: true
|
||||
|
||||
- tags:
|
||||
short: t
|
||||
long: tags
|
||||
help: Filter for these tags
|
||||
required: false
|
||||
takes_value: true
|
||||
|
||||
- remove:
|
||||
about: Remove note(s)
|
||||
version: 0.1
|
||||
author: Matthias Beyer <mail@beyermatthias.de>
|
||||
args:
|
||||
- id:
|
||||
long: id
|
||||
help: Delete Note by ID
|
||||
required: false
|
||||
takes_value: true
|
||||
|
||||
- match:
|
||||
short: m
|
||||
long: match
|
||||
help: Match for regex
|
||||
required: false
|
||||
takes_value: true
|
||||
|
||||
- tags:
|
||||
short: t
|
||||
long: tags
|
||||
help: Filter for these tags
|
||||
required: false
|
||||
takes_value: true
|
||||
|
||||
|
|
Loading…
Reference in a new issue