mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Adding actionsmap sketch + placeholders
This commit is contained in:
parent
830a174478
commit
c88c4ead78
3 changed files with 32 additions and 0 deletions
BIN
doc/actionsmap.png
Normal file
BIN
doc/actionsmap.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 64 KiB |
31
doc/actionsmap.rst
Normal file
31
doc/actionsmap.rst
Normal file
|
@ -0,0 +1,31 @@
|
|||
=================================
|
||||
Role and syntax of the actionsmap
|
||||
=================================
|
||||
|
||||
Principle
|
||||
=========
|
||||
|
||||
The actionsmap allows to easily define commands and their arguments through
|
||||
a YAML file. Moulinette will automatically make the command available through
|
||||
the CLI and Rest API, and will be mapped to a python function.
|
||||
|
||||
The illustration below summarizes how it works :
|
||||
|
||||
.. image:: actionsmap.png
|
||||
|
||||
|
||||
Format of the actionmap
|
||||
=======================
|
||||
|
||||
General description of categories/subcategories, actions, arguments.
|
||||
|
||||
Authentication configuration
|
||||
----------------------------
|
||||
|
||||
Document the `configuration: authenticate: all` LDAP stuff ...
|
||||
|
||||
Special options for arguments
|
||||
-----------------------------
|
||||
|
||||
Document `nargs`, `metavar`, `extra: pattern`
|
||||
|
|
@ -16,6 +16,7 @@ a reference.
|
|||
:maxdepth: 2
|
||||
:caption: Contents:
|
||||
|
||||
actionsmap
|
||||
ldap
|
||||
m18n
|
||||
utils/filesystem
|
||||
|
|
Loading…
Reference in a new issue