diff --git a/internal/cli/config/get.go b/internal/cli/config/get.go index 3d6706498c5..a0583fd0455 100644 --- a/internal/cli/config/get.go +++ b/internal/cli/config/get.go @@ -47,7 +47,7 @@ func initGetCommand() *cobra.Command { func runGetCommand(cmd *cobra.Command, args []string) { logrus.Info("Executing `arduino-cli config get`") - svc := daemon.ArduinoCoreServerImpl{} + svc := daemon.ArduinoCoreServerImpl{} for _, toGet := range args { resp, err := svc.SettingsGetValue(cmd.Context(), &rpc.SettingsGetValueRequest{Key: toGet}) if err != nil { @@ -61,7 +61,7 @@ func runGetCommand(cmd *cobra.Command, args []string) { // create a dedicated feedback.Result implementation to safely handle // any changes to the configuration.Settings struct. type getResult struct { - key string + key string data interface{} } diff --git a/internal/integrationtest/config/config_test.go b/internal/integrationtest/config/config_test.go index 9f3cdf53a4c..1d109e09f5a 100644 --- a/internal/integrationtest/config/config_test.go +++ b/internal/integrationtest/config/config_test.go @@ -844,7 +844,7 @@ func TestGet(t *testing.T) { // Get multiple key values stdout, _, err = cli.Run("config", "get", "logging.format", "logging.level", "--format", "json", "--config-file", "arduino-cli.yaml") require.NoError(t, err) - require.Equal(t,`"text"` + "\n" + `"info"`, stdout) + require.Equal(t, `"text"`+"\n"+`"info"`, stdout) // Get undefined key stdout, _, err = cli.Run("config", "get", "foo", "--format", "json", "--config-file", "arduino-cli.yaml")