From bf6bae011d46117cb789d2f7fae3761e0c719576 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Rinc=C3=B3n=20Blanco?= Date: Fri, 31 Mar 2023 17:25:56 +0200 Subject: [PATCH] Add *= dict syntax docs (#3141) --- reference/config_files/global_conf.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/reference/config_files/global_conf.rst b/reference/config_files/global_conf.rst index 5c0c911c035c..2471ec208b1b 100644 --- a/reference/config_files/global_conf.rst +++ b/reference/config_files/global_conf.rst @@ -181,6 +181,7 @@ any of your profiles: * ``+=`` == ``append``: appends values at the end of the existing value (only for lists). * ``=+`` == ``prepend``: puts values at the beginning of the existing value (only for lists). +* ``*=`` == ``update``: updates the specified keys only, leaving the rest unmodified (only for dictionaries) * ``=!`` == ``unset``: gets rid of any configuration value. .. code-block:: text @@ -198,6 +199,12 @@ any of your profiles: # Unset the value user.myconf.build:flags=! + # Define the value => {"a": 1, "b": 2} + user.myconf.build:other={"a": 1, "b": 2} + + # Update b = 4 => {"a": 1, "b": 4} + user.myconf.build:other*={"b": 4} + Configuration patterns ----------------------