chore(constants): remove and move constant paths

- Remove unused paths
- Move paths to inline constants if used only once
This commit is contained in:
Quentin McGaw
2022-01-29 15:34:59 +00:00
parent 5603e25542
commit c73369e11c
8 changed files with 22 additions and 33 deletions

View File

@@ -7,7 +7,7 @@ import (
"os"
"strings"
"github.com/qdm12/gluetun/internal/constants"
"github.com/qdm12/gluetun/internal/configuration/sources/files"
)
type ClientKeyFormatter interface {
@@ -16,7 +16,7 @@ type ClientKeyFormatter interface {
func (c *CLI) ClientKey(args []string) error {
flagSet := flag.NewFlagSet("clientkey", flag.ExitOnError)
filepath := flagSet.String("path", constants.ClientKey, "file path to the client.key file")
filepath := flagSet.String("path", files.OpenVPNClientKeyPath, "file path to the client.key file")
if err := flagSet.Parse(args); err != nil {
return err
}