We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
arduino
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 7f697fc commit fe08033Copy full SHA for fe08033
internal/cli/config/dump.go
@@ -45,15 +45,15 @@ func runDumpCommand(cmd *cobra.Command, args []string) {
45
// output from this command requires special formatting, let's create a dedicated
46
// feedback.Result implementation
47
type dumpResult struct {
48
- data map[string]interface{}
+ Config map[string]interface{} `json:"config"`
49
}
50
51
func (dr dumpResult) Data() interface{} {
52
- return dr.data
+ return dr
53
54
55
func (dr dumpResult) String() string {
56
- bs, err := yaml.Marshal(dr.data)
+ bs, err := yaml.Marshal(dr.Config)
57
if err != nil {
58
// Should never happen
59
panic(tr("unable to marshal config to YAML: %v", err))
0 commit comments