Commit graph

26 commits

Author SHA1 Message Date
eaf8b8cba2 [tutorial 025] A variable with type's parameters (config and doc) 2024-10-23 20:01:23 +02:00
bdc8c31653 [tutorial 024] A variable with type "domainname" 2024-10-23 20:01:21 +02:00
ef2ce5f7c6 [tutorial 024] A variable with type "domainname" (config and doc) 2024-10-23 20:01:21 +02:00
8ac3fb012a [tutorial 023] Family type is optional 2024-10-23 20:01:20 +02:00
b222c0c06c [tutorial 023] Family type is optional (config and doc) 2024-10-23 20:01:20 +02:00
577a518c0e [tutorial 022] A variable inside sub family 2024-10-23 20:01:19 +02:00
d5d61d0e76 [tutorial 022] A variable inside sub family (config and doc) 2024-10-23 20:01:19 +02:00
ce617110b9 [tutorial 021] 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 20:01:18 +02:00
e1ee17eb56 [tutorial 021] A sub family (config and doc) 2024-10-23 20:01:18 +02:00
a044459cc1 [tutorial 020] 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 20:01:17 +02:00
164b36ba47 [tutorial 020] A family (config and doc) 2024-10-23 20:01:17 +02:00
bf5a0b6608 [tutorial 014] Choice type is optional
The type is optional in choice type (if we have choices attributes, it's a choice option).
2024-10-23 20:01:16 +02:00
412d126e94 [tutorial 014] Choice type is optional (config and doc) 2024-10-23 20:01:16 +02:00
51026ab103 [tutorial 013] 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 20:01:15 +02:00
401855bced [tutorial 013] A variable with type "choice" (config and doc) 2024-10-23 20:01:15 +02:00
1a63a64517 [tutorial 012] 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 20:01:14 +02:00
4e15859b0c [tutorial 012] A default value (config and doc) 2024-10-23 20:01:14 +02:00
fdc3f9aec3 [tutorial 011] 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 20:01:13 +02:00
f87332920d [tutorial 011] The variable description (config and doc) 2024-10-23 20:01:13 +02:00
5683709a74 [tutorial 010] A first variable with only a name 2024-10-23 20:01:11 +02:00
8a9aac7c3b [tutorial 010] A first variable with only a name (config and doc) 2024-10-23 20:01:11 +02:00
5a7036d4cf [tutorial 001] The format version in commandline 2024-10-23 20:01:10 +02:00
0ecf545a3f [tutorial 001] The format version in commandline (config and doc) 2024-10-23 20:01:10 +02:00
e9e18d0a76 [tutorial 000] A structured file with format version 2024-10-23 20:01:09 +02:00
090132d243 [tutorial 000] A structured file with format version (config and doc) 2024-10-23 20:01:09 +02:00
bd6bd97e8a [init] Discover Rougail 2024-10-23 20:01:08 +02:00