How to use the Settings operation
Unsolved
Installation and Deployment
-
Hi,
The manual page mentioned an operation which might be useful to me but I can't understand what it means. It's the "Settings" operation. The manual says:
Sets or removes the value of key in the settings file located at path, depending on the value of method: set, remove, add_array_value, and remove_array_value. Example: component.addOperation("Settings", "path=settings.ini", "method=add", "key=myKey", "value=myValue")
I tried it with something like the provided example but it tells me that the operation isn't supported and
Current method argument calling "Settings" with arguments "path=~/.config/installed_components.ini; method=add; key=myKey; value=/home/peter/ascm-4.7.0/" is not supported. Please use set, remove, add_array_value, or remove_array_value.
I've used the example provided so not sure what I did wrong.
Are there any examples or tutorials for this one?
Thanks.
Peter