remove rougail code
This commit is contained in:
parent
39f01b36a1
commit
b1ed2d3aaf
7 changed files with 22 additions and 25 deletions
|
@ -9,7 +9,7 @@ sys.path.append('.')
|
||||||
|
|
||||||
#---- debug mode ----
|
#---- debug mode ----
|
||||||
# shows/hides the todos
|
# shows/hides the todos
|
||||||
todo_include_todos = False
|
todo_include_todos = True
|
||||||
|
|
||||||
# -- Project information -----------------------------------------------------
|
# -- Project information -----------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -184,19 +184,7 @@ We're gonna make the simplest possible example.
|
||||||
hello:
|
hello:
|
||||||
default: world
|
default: world
|
||||||
|
|
||||||
- Then we make a :file:`hello.py` in our root :file:`workplace` directory:
|
.. todo:: mettre un appel à la CLI pour lancer le truc
|
||||||
|
|
||||||
.. code-block:: python
|
|
||||||
:caption: The :file:`hello.py` file
|
|
||||||
|
|
||||||
from rougail import Rougail, RougailConfig
|
|
||||||
|
|
||||||
RougailConfig['dictionaries_dir'] = ['dict']
|
|
||||||
rougail = Rougail()
|
|
||||||
config = rougail.get_config()
|
|
||||||
print(config.value.get())
|
|
||||||
|
|
||||||
.. demo:: Let's run the :file:`hello.py` script
|
|
||||||
|
|
||||||
We launch the script:
|
We launch the script:
|
||||||
|
|
||||||
|
|
BIN
docs/images/QuestionaryChoice.png
Normal file
BIN
docs/images/QuestionaryChoice.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 88 KiB |
|
@ -42,13 +42,28 @@ Then, let's create the :term:`Tiramisu` objects via the following script:
|
||||||
config = rougail.get_config()
|
config = rougail.get_config()
|
||||||
print(config.value.get())
|
print(config.value.get())
|
||||||
|
|
||||||
Let's execute `script.py`:
|
.. demo:: Let's execute `script.py`:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
$ python3 script.py
|
$ python3 script.py
|
||||||
{'rougail.my_variable': 'my_value'}
|
{'rougail.my_variable': 'my_value'}
|
||||||
|
|
||||||
|
The operator role
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
|
||||||
|
The :term:`operator` role corresponds to the :term:`tiramisu` settings:
|
||||||
|
|
||||||
|
.. image:: images/tiramisu_get_set.png
|
||||||
|
|
||||||
|
.. index:: questionary
|
||||||
|
|
||||||
|
But instead of coding in the end user developer way, the opterator will prefer using the Rougail CLI interface:
|
||||||
|
|
||||||
|
.. image:: images/QuestionaryChoice.png
|
||||||
|
|
||||||
|
|
||||||
Let's convert an extra dictionary
|
Let's convert an extra dictionary
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 24 KiB |
|
@ -63,13 +63,7 @@ The operator role
|
||||||
|
|
||||||
.. image:: images/operator.png
|
.. image:: images/operator.png
|
||||||
|
|
||||||
The operator role corresponds to the :term:`tiramisu` settings:
|
The operator can use the Rougail CLI interface:
|
||||||
|
|
||||||
.. image:: images/tiramisu_get_set.png
|
|
||||||
|
|
||||||
.. index:: questionary
|
|
||||||
|
|
||||||
But instead of coding in the end user developer way, the opterator will prefer using the Rougail CLI interface:
|
|
||||||
|
|
||||||
.. image:: images/QuestionaryChoice.png
|
.. image:: images/QuestionaryChoice.png
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue