arduino-cli icon indicating copy to clipboard operation
arduino-cli copied to clipboard

Embed settings in the internal CoreInstance

Open silvanocerza opened this issue 3 years ago • 1 comments
trafficstars

Currently configs used by the Arduino CLI are stored in a global struct, both when running in daemon or command line mode.

This behaviour has some issues since it prevents gRPC consumers to use different configs for different clients connected to it, this means that if a client wants to change settings they change for all clients.

The solution is to embed the settings in the CoreInstance and access them only through it. This will enhance a lot how settings are handled and also make it easier to write unit tests for certain code parts.

silvanocerza avatar Jan 17 '22 10:01 silvanocerza

Part of this task is already been done on branch scerza/embedding-settings.

silvanocerza avatar Mar 18 '22 08:03 silvanocerza

image

Unfortunately this branch is quite old now, we are going for a similar approach in the future maybe.

umbynos avatar Feb 02 '23 15:02 umbynos