Commit graph

23 commits

Author SHA1 Message Date
a1765b0b1e [tutorial 013] A sub family
Inside a family, we can have variables or families.

The "type" for family "manual" became unecessary because container an other family, so it's not a variable.

In disabled attribute, it's better tu use relative path (we will see the reason in an other slide).
2024-10-23 10:58:20 +02:00
57e4e8e84e [tutorial 013] A sub family (config and doc) 2024-10-23 10:58:20 +02:00
b99325d5c6 [tutorial 012] Conditional desactived family
This family will be desactived if "proxy_mode" is not "manual proxy configuration".

Desactived a variable or a family means that this variable will never be accessible.
2024-10-23 10:58:19 +02:00
fb9df03118 [tutorial 012] Conditional desactived family (config and doc) 2024-10-23 10:58:19 +02:00
733343b748 [tutorial 011] Conditional desactived family
This family will be desactived if "proxy_mode" is not "manual proxy configuration".

Desactived a variable or a family means that this variable will never be accessible.
2024-10-23 10:58:18 +02:00
00554ccd78 [tutorial 011] Conditional desactived family (config and doc) 2024-10-23 10:58:18 +02:00
345f0bc130 [tutorial 010] A family
The "manual" mode structural descriptions are write in a new files to separate things. But Rougail will concatenate variables and families.

We create a family, which will contain other variables.

This family has:

- a description
- a type

As there is no variable inside this family, the type is mandatory. Without it, Rougail will create a variable.

In fact, this family will be deleted by Rougail too because it is empty.
2024-10-23 10:58:17 +02:00
665e80e79c [tutorial 010] A family (config and doc) 2024-10-23 10:58:17 +02:00
ab5bb691bb [tutorial 007] Choice type is optional
The type is optional in choice type (if we have choices attributes, it's a choice option).
2024-10-23 10:58:16 +02:00
e14e968bfe [tutorial 007] Choice type is optional (config and doc) 2024-10-23 10:58:16 +02:00
4152d393cb [tutorial 006] A variable with type choice
"Foo" should not be an option to the "proxy_mode" variable.

Now the "proxy_mode" type is "choice", that means that there is a list of available values that can be selected.

We say that the "proxy_mode" variable is constrained (by choices): this variable accept, in fact, only a list of choices.
2024-10-23 10:58:14 +02:00
2022c20632 [tutorial 006] A variable with type choice (config and doc) 2024-10-23 10:58:14 +02:00
982beb924d [tutorial 005] A default value
Now we can define the default value of this variable.

If the user doesn't touch this variable's value, the value is "No proxy"

As user intervention is no more required, so the variable change it's default mode too (from "basic" to "standard").
2024-10-23 10:58:13 +02:00
ed7db52004 [tutorial 005] A default value (config and doc) 2024-10-23 10:58:13 +02:00
26bb436f06 [tutorial 004] The variable description
We can add a description to this first variable.

This information is useful for:

- documentation
- error message
- help user to known which value to set to this variable (for example with [the user data plugin Questionary](https://forge.cloud.silique.fr/gnunux/rougail-user-data-questionary)).
2024-10-23 10:58:11 +02:00
7ea2900563 [tutorial 004] The variable description (config and doc) 2024-10-23 10:58:11 +02:00
6db0bb5ad1 [tutorial 003] A first variable with only a name 2024-10-23 10:58:10 +02:00
fc33bedf02 [tutorial 003] A first variable with only a name (config and doc) 2024-10-23 10:58:10 +02:00
4c6e073d96 [tutorial 002] The format version in commandline 2024-10-23 10:58:09 +02:00
ea2ee1de8a [tutorial 002] The format version in commandline (config and doc) 2024-10-23 10:58:09 +02:00
337af91380 [tutorial 001] A structured file with format version 2024-10-23 10:58:08 +02:00
679ba4d628 [tutorial 001] A structured file with format version (config and doc) 2024-10-23 10:58:08 +02:00
49217fb2ec [init] Discover Rougail 2024-10-23 10:58:06 +02:00