chore(settings): use qdm12/gosettings functions

- use: FileExists, ObfuscateKey, BoolToYesNo
- remove local functions moved to gosettings
This commit is contained in:
Quentin McGaw
2023-05-28 10:33:36 +00:00
parent 22b2e2cc6e
commit def407d610
15 changed files with 26 additions and 99 deletions

View File

@@ -6,7 +6,6 @@ import (
"os"
"strconv"
"github.com/qdm12/gluetun/internal/configuration/settings/helpers"
"github.com/qdm12/gosettings"
"github.com/qdm12/gotree"
)
@@ -76,6 +75,6 @@ func (c ControlServer) String() string {
func (c ControlServer) toLinesNode() (node *gotree.Node) {
node = gotree.New("Control server settings:")
node.Appendf("Listening address: %s", *c.Address)
node.Appendf("Logging: %s", helpers.BoolPtrToYesNo(c.Log))
node.Appendf("Logging: %s", gosettings.BoolToYesNo(c.Log))
return node
}