2017-08-13 16:49:01 +02:00
|
|
|
=================================
|
|
|
|
Role and syntax of the actionsmap
|
|
|
|
=================================
|
|
|
|
|
2019-08-04 18:54:27 +02:00
|
|
|
.. _actionsmap:
|
2019-08-04 19:05:18 +02:00
|
|
|
|
2017-08-13 16:49:01 +02:00
|
|
|
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`
|
|
|
|
|