diff options
| author | Laurenz <ritters_werth@outlook.com> | 2023-12-18 12:18:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-18 12:18:41 +0100 |
| commit | 22ba6825db3b82e0b0f83ef6052f17289893e385 (patch) | |
| tree | cf69e7ac0eeb49f13ffb0b81e36461e07cb766ba /docs | |
| parent | 356bdeba18153efd4209657182971e22bdaf4db2 (diff) | |
Key/Value data from CLI (#2894)
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/reference/groups.yml | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/docs/reference/groups.yml b/docs/reference/groups.yml index 5ae564b2..16ded697 100644 --- a/docs/reference/groups.yml +++ b/docs/reference/groups.yml @@ -129,9 +129,19 @@ details: | Module for system interactions. - Currently, this module defines a single item: The `sys.version` constant - (of type [`version`]($version)), that specifies the currently active - Typst compiler version. + This module defines the following items: + + - The `sys.version` constant (of type [`version`]($version)) that specifies + the currently active Typst compiler version. + + - The `sys.inputs` [dictionary]($dictionary), which makes external inputs + available to the project. An input specified in the command line as + `--input key=value` becomes available under `sys.inputs.key` as + `{"value"}`. To include spaces in the value, it may be enclosed with + single or double quotes. + + The value is always of type [string]($str). More complex data + may be parsed manually using functions like [`json.decode`]($json.decode). - name: sym title: General |
