Commit graph

14 commits

Author SHA1 Message Date
4427c75b04 [tutorial v1.1_021)] Group variables inside a sub family (config and doc) 2025-11-04 19:22:08 +01:00
d332ca1707 [tutorial 020] Group variables inside 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.
2025-11-04 19:22:07 +01:00
454a89d93a [tutorial v1.1_020)] Group variables inside a family (config and doc) 2025-11-04 19:22:07 +01:00
08e7754b62 [tutorial 013] The variable is a "choice" variable
"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.
2025-11-04 19:22:06 +01:00
d7f493fa9a [tutorial v1.1_013)] The variable is a "choice" variable (config and doc) 2025-11-04 19:22:06 +01:00
8aa2f8dc5d [tutorial 012] Set 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").
2025-11-04 19:22:06 +01:00
220040bd41 [tutorial v1.1_012)] Set a default value (config and doc) 2025-11-04 19:22:05 +01:00
4763a5265d [tutorial 011] Describe the variable
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/stove/rougail-user-data-questionary)).
2025-11-04 19:22:05 +01:00
023897764f [tutorial v1.1_011)] Describe the variable (config and doc) 2025-11-04 19:22:05 +01:00
2cc3c466b2 [tutorial 010] A first variable with only a name 2025-11-04 19:22:04 +01:00
5ac179f65d [tutorial v1.1_010)] A first variable with only a name (config and doc) 2025-11-04 19:22:04 +01:00
12000969d6 [tutorial 000] An empty structured file with format version 2025-11-04 19:22:03 +01:00
920cc16ccd [tutorial v1.1_000)] An empty structured file with format version (config and doc) 2025-11-04 19:22:03 +01:00
2ee8194c60 [init] Discover Rougail 2025-11-04 19:22:02 +01:00