We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a0e0ec commit 1d4304aCopy full SHA for 1d4304a
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