1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Split up logger and widget

This allows us to use the logger from the wtf directory
For example when trying to debug sort ordering in focus_tracker
This commit is contained in:
Sean Smith
2019-05-10 18:21:52 -04:00
parent 0b59a3b62f
commit c328ba4c11
12 changed files with 131 additions and 117 deletions

View File

@@ -7,7 +7,7 @@ import (
goFlags "github.com/jessevdk/go-flags"
"github.com/wtfutil/wtf/help"
"github.com/wtfutil/wtf/wtf"
"github.com/wtfutil/wtf/utils"
)
type Flags struct {
@@ -63,7 +63,7 @@ func (flags *Flags) Parse() {
// If no config file is explicitly passed in as a param,
// set the flag to the default config file
if !flags.HasConfig() {
homeDir, err := wtf.Home()
homeDir, err := utils.Home()
if err != nil {
fmt.Printf("Error: %v\n", err)
os.Exit(1)