add comments for readability

This commit is contained in:
Celogeek 2023-04-02 23:04:47 +02:00
parent 5905b3eeb7
commit ede00654b2
Signed by: celogeek
SSH Key Fingerprint: SHA256:njNJLzoLQdbV9PC6ehcruRb0QnEgxABoCYZ+0+aUIYc

View File

@ -10,16 +10,16 @@ import (
) )
type Options struct { type Options struct {
Input string `yaml:"-"` // Output
Output string `yaml:"-"` Input string `yaml:"-"`
Author string `yaml:"-"` Output string `yaml:"-"`
Title string `yaml:"-"` Author string `yaml:"-"`
Auto bool `yaml:"-"` Title string `yaml:"-"`
Workers int `yaml:"-"` Auto bool `yaml:"-"`
Dry bool `yaml:"-"` Workers int `yaml:"-"`
Show bool `yaml:"-"` Dry bool `yaml:"-"`
Save bool `yaml:"-"`
Help bool `yaml:"-"` // Config
Profile string `yaml:"profile"` Profile string `yaml:"profile"`
Quality int `yaml:"quality"` Quality int `yaml:"quality"`
Crop bool `yaml:"crop"` Crop bool `yaml:"crop"`
@ -33,6 +33,14 @@ type Options struct {
AddPanelView bool `yaml:"add_panel_view"` AddPanelView bool `yaml:"add_panel_view"`
LimitMb int `yaml:"limit_mb"` LimitMb int `yaml:"limit_mb"`
// Default Config
Show bool `yaml:"-"`
Save bool `yaml:"-"`
// Other
Help bool `yaml:"-"`
// Internal
profiles profiles.Profiles profiles profiles.Profiles
} }
@ -93,6 +101,7 @@ func (o *Options) LoadDefault() error {
if err != nil && err.Error() != "EOF" { if err != nil && err.Error() != "EOF" {
return err return err
} }
return nil return nil
} }