From ede00654b2a73d3a731fdd7f5038647d86e12176 Mon Sep 17 00:00:00 2001 From: celogeek <65178+celogeek@users.noreply.github.com> Date: Sun, 2 Apr 2023 23:04:47 +0200 Subject: [PATCH] add comments for readability --- internal/converter/options/core.go | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/internal/converter/options/core.go b/internal/converter/options/core.go index 3db3b9b..858d0b4 100644 --- a/internal/converter/options/core.go +++ b/internal/converter/options/core.go @@ -10,16 +10,16 @@ import ( ) type Options struct { - Input string `yaml:"-"` - Output string `yaml:"-"` - Author string `yaml:"-"` - Title string `yaml:"-"` - Auto bool `yaml:"-"` - Workers int `yaml:"-"` - Dry bool `yaml:"-"` - Show bool `yaml:"-"` - Save bool `yaml:"-"` - Help bool `yaml:"-"` + // Output + Input string `yaml:"-"` + Output string `yaml:"-"` + Author string `yaml:"-"` + Title string `yaml:"-"` + Auto bool `yaml:"-"` + Workers int `yaml:"-"` + Dry bool `yaml:"-"` + + // Config Profile string `yaml:"profile"` Quality int `yaml:"quality"` Crop bool `yaml:"crop"` @@ -33,6 +33,14 @@ type Options struct { AddPanelView bool `yaml:"add_panel_view"` LimitMb int `yaml:"limit_mb"` + // Default Config + Show bool `yaml:"-"` + Save bool `yaml:"-"` + + // Other + Help bool `yaml:"-"` + + // Internal profiles profiles.Profiles } @@ -93,6 +101,7 @@ func (o *Options) LoadDefault() error { if err != nil && err.Error() != "EOF" { return err } + return nil }