Skip to content

Commit cb7c466

Browse files
committed
Reduce size of json output
Signed-off-by: Knut Ahlers <[email protected]>
1 parent bf0d16a commit cb7c466

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

cmd/streamdeck/config.go

+28-28
Original file line numberDiff line numberDiff line change
@@ -18,34 +18,34 @@ func init() {
1818
}
1919

2020
type attributeCollection struct {
21-
AttachStderr bool `json:"attach_stderr" yaml:"attach_stderr"`
22-
AttachStdout bool `json:"attach_stdout" yaml:"attach_stdout"`
23-
Border *int `json:"border" yaml:"border"`
24-
Caption string `json:"caption" yaml:"caption"`
25-
ChangeVolume *float64 `json:"change_volume" yaml:"change_volume"`
26-
Color string `json:"color" yaml:"color"`
27-
Command []string `json:"command" yaml:"command"`
28-
Delay time.Duration `json:"delay" yaml:"delay"`
29-
Device string `json:"device" yaml:"device"`
30-
Env map[string]string `json:"env" yaml:"env"`
31-
FontSize *float64 `json:"font_size" yaml:"font_size"`
32-
Image string `json:"image" yaml:"image"`
33-
Interval time.Duration `json:"interval" yaml:"interval"`
34-
KeyCodes []int `json:"key_codes" yaml:"key_codes"`
35-
Keys []string `json:"keys" yaml:"keys"`
36-
Match string `json:"match" yaml:"match"`
37-
ModAlt bool `json:"mod_alt" yaml:"mod_alt"`
38-
ModCtrl bool `json:"mod_ctrl" yaml:"mod_ctrl"`
39-
ModShift bool `json:"mod_shift" yaml:"mod_shift"`
40-
Mute string `json:"mute" yaml:"mute"`
41-
Name string `json:"name" yaml:"name"`
42-
Path string `json:"path" yaml:"path"`
43-
Relative int `json:"relative" yaml:"relative"`
44-
RGBA []int `json:"rgba" yaml:"rgba"`
45-
SetVolume *float64 `json:"set_volume" yaml:"set_volume"`
46-
Text string `json:"text" yaml:"text"`
47-
URL string `json:"url" yaml:"url"`
48-
Wait bool `json:"wait" yaml:"wait"`
21+
AttachStderr bool `json:"attach_stderr,omitempty" yaml:"attach_stderr,omitempty"`
22+
AttachStdout bool `json:"attach_stdout,omitempty" yaml:"attach_stdout,omitempty"`
23+
Border *int `json:"border,omitempty" yaml:"border,omitempty"`
24+
Caption string `json:"caption,omitempty" yaml:"caption,omitempty"`
25+
ChangeVolume *float64 `json:"change_volume,omitempty" yaml:"change_volume,omitempty"`
26+
Color string `json:"color,omitempty" yaml:"color,omitempty"`
27+
Command []string `json:"command,omitempty" yaml:"command,omitempty"`
28+
Delay time.Duration `json:"delay,omitempty" yaml:"delay,omitempty"`
29+
Device string `json:"device,omitempty" yaml:"device,omitempty"`
30+
Env map[string]string `json:"env,omitempty" yaml:"env,omitempty"`
31+
FontSize *float64 `json:"font_size,omitempty" yaml:"font_size,omitempty"`
32+
Image string `json:"image,omitempty" yaml:"image,omitempty"`
33+
Interval time.Duration `json:"interval,omitempty" yaml:"interval,omitempty"`
34+
KeyCodes []int `json:"key_codes,omitempty" yaml:"key_codes,omitempty"`
35+
Keys []string `json:"keys,omitempty" yaml:"keys,omitempty"`
36+
Match string `json:"match,omitempty" yaml:"match,omitempty"`
37+
ModAlt bool `json:"mod_alt,omitempty" yaml:"mod_alt,omitempty"`
38+
ModCtrl bool `json:"mod_ctrl,omitempty" yaml:"mod_ctrl,omitempty"`
39+
ModShift bool `json:"mod_shift,omitempty" yaml:"mod_shift,omitempty"`
40+
Mute string `json:"mute,omitempty" yaml:"mute,omitempty"`
41+
Name string `json:"name,omitempty" yaml:"name,omitempty"`
42+
Path string `json:"path,omitempty" yaml:"path,omitempty"`
43+
Relative int `json:"relative,omitempty" yaml:"relative,omitempty"`
44+
RGBA []int `json:"rgba,omitempty" yaml:"rgba,omitempty"`
45+
SetVolume *float64 `json:"set_volume,omitempty" yaml:"set_volume,omitempty"`
46+
Text string `json:"text,omitempty" yaml:"text,omitempty"`
47+
URL string `json:"url,omitempty" yaml:"url,omitempty"`
48+
Wait bool `json:"wait,omitempty" yaml:"wait,omitempty"`
4949
}
5050

5151
func (a attributeCollection) Clone() attributeCollection {

0 commit comments

Comments
 (0)