Skip to content

Embed settings in the internal CoreInstance #1627

@silvanocerza

Description

@silvanocerza

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions