Lines Matching full:key
9 # It supports basic key-value pairs, like
12 # basic key-object pairs, like
168 # yaml_get(<out-var> NAME <name> KEY <key>...)
170 # Get the value of the given key and store the value in <out-var>.
171 # If key represents a list, then the list is returned.
173 # Behavior is undefined if key points to a complex object.
176 # KEY <key>... : Name of key.
182 cmake_parse_arguments(ARG_YAML "" "NAME" "KEY" ${ARGN})
184 zephyr_check_arguments_required_all(${CMAKE_CURRENT_FUNCTION} ARG_YAML NAME KEY)
190 # If key is not found, then type becomes '-NOTFOUND' and value handling is done below.
206 # Searching for a non-existing key should just result in the output value '-NOTFOUND'
213 # yaml_length(<out-var> NAME <name> KEY <key>...)
215 # Get the length of the array defined by the given key and store the length in <out-var>.
216 # If key does not define an array, then the length -1 is returned.
219 # KEY <key>... : Name of key defining the list.
223 cmake_parse_arguments(ARG_YAML "" "NAME" "KEY" ${ARGN})
225 zephyr_check_arguments_required_all(${CMAKE_CURRENT_FUNCTION} ARG_YAML NAME KEY)
238 message(WARNING "YAML key: ${ARG_YAML_KEY} is not an array.")
244 # yaml_set(NAME <name> KEY <key>... VALUE <value>)
245 # yaml_set(NAME <name> KEY <key>... [APPEND] LIST <value>...)
247 # Set a value or a list of values to given key.
250 # list of values should be appended to the existing list identified with key(s).
253 # KEY <key>... : Name of key.
254 # VALUE <value>: New value for the key.
255 # List <values>: New list of values for the key.
256 # APPEND : Append the list of values to the list of values for the key.
259 cmake_parse_arguments(ARG_YAML "APPEND" "NAME;VALUE" "KEY;LIST" ${ARGN})
261 zephyr_check_arguments_required_all(${CMAKE_CURRENT_FUNCTION} ARG_YAML NAME KEY)
271 # We ignore any errors as we are checking for existence of the key, and
321 # yaml_remove(NAME <name> KEY <key>...)
323 # Remove the KEY <key>... from the YAML context <name>.
326 # KEY build cmake command
328 # To remove the key 'command' underneath 'cmake' in the toplevel 'build'
331 # KEY <key> : Name of key to remove.
334 cmake_parse_arguments(ARG_YAML "" "NAME" "KEY" ${ARGN})
336 zephyr_check_arguments_required_all(${CMAKE_CURRENT_FUNCTION} ARG_YAML NAME KEY)