Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fe08033

Browse files
committedNov 10, 2023
cli: config dump
1 parent 7f697fc commit fe08033

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎internal/cli/config/dump.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ func runDumpCommand(cmd *cobra.Command, args []string) {
4545
// output from this command requires special formatting, let's create a dedicated
4646
// feedback.Result implementation
4747
type dumpResult struct {
48-
data map[string]interface{}
48+
Config map[string]interface{} `json:"config"`
4949
}
5050

5151
func (dr dumpResult) Data() interface{} {
52-
return dr.data
52+
return dr
5353
}
5454

5555
func (dr dumpResult) String() string {
56-
bs, err := yaml.Marshal(dr.data)
56+
bs, err := yaml.Marshal(dr.Config)
5757
if err != nil {
5858
// Should never happen
5959
panic(tr("unable to marshal config to YAML: %v", err))

0 commit comments

Comments
 (0)
Please sign in to comment.