aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2023-04-18 19:11:56 -0400
committerXe Iaso <me@xeiaso.net>2023-04-18 19:12:08 -0400
commit7f8a0be340b0c6a54dcac51cbdf5ebf7ce0d8293 (patch)
tree7d9bb013d69bdf9522ad88edbf162e00924bb28f /internal
parent4c15f8fa4ce26a8e43ff1a86c316d5f25f899a1c (diff)
downloadx-7f8a0be340b0c6a54dcac51cbdf5ebf7ce0d8293.tar.xz
x-7f8a0be340b0c6a54dcac51cbdf5ebf7ce0d8293.zip
tokenize
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'internal')
-rw-r--r--internal/internal.go13
1 files changed, 5 insertions, 8 deletions
diff --git a/internal/internal.go b/internal/internal.go
index 0ac1981..8eedfab 100644
--- a/internal/internal.go
+++ b/internal/internal.go
@@ -10,7 +10,6 @@ import (
"github.com/posener/complete"
"go4.org/legal"
- "within.website/ln"
"within.website/ln/opname"
"within.website/x/internal/confyg/flagconfyg"
"within.website/x/internal/flagenv"
@@ -33,7 +32,7 @@ var (
func configFileLocation() string {
dir, err := os.UserConfigDir()
if err != nil {
- ln.Error(context.Background(), err, ln.Debug("can't read config dir"))
+ //ln.Error(context.Background(), err, ln.Debug("can't read config dir"))
return ""
}
@@ -47,10 +46,10 @@ func configFileLocation() string {
// This always loads from the following configuration sources in the following
// order:
//
-// - command line flags (to get -config)
-// - environment variables
-// - configuration file (if -config is set)
-// - command line flags
+// - command line flags (to get -config)
+// - environment variables
+// - configuration file (if -config is set)
+// - command line flags
//
// This is done this way to ensure that command line flags always are the deciding
// factor as an escape hatch.
@@ -61,8 +60,6 @@ func HandleStartup() {
ctx := opname.With(context.Background(), "internal.HandleStartup")
if *config != "" {
- ln.Log(ctx, ln.Info("loading config"), ln.F{"path": *config})
-
flagconfyg.CmdParse(ctx, *config)
}
flag.Parse()