mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-25 16:22:37 +02:00
add comments for readability
This commit is contained in:
parent
5905b3eeb7
commit
ede00654b2
@ -10,6 +10,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Options struct {
|
type Options struct {
|
||||||
|
// Output
|
||||||
Input string `yaml:"-"`
|
Input string `yaml:"-"`
|
||||||
Output string `yaml:"-"`
|
Output string `yaml:"-"`
|
||||||
Author string `yaml:"-"`
|
Author string `yaml:"-"`
|
||||||
@ -17,9 +18,8 @@ type Options struct {
|
|||||||
Auto bool `yaml:"-"`
|
Auto bool `yaml:"-"`
|
||||||
Workers int `yaml:"-"`
|
Workers int `yaml:"-"`
|
||||||
Dry bool `yaml:"-"`
|
Dry bool `yaml:"-"`
|
||||||
Show bool `yaml:"-"`
|
|
||||||
Save bool `yaml:"-"`
|
// Config
|
||||||
Help bool `yaml:"-"`
|
|
||||||
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user