Skip to content

Commit

Permalink
add config ToDos
Browse files Browse the repository at this point in the history
  • Loading branch information
bitspill committed Jan 8, 2019
1 parent 86028df commit cbd0706
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ var (
configBox = packr.New("defaults", "./defaults")
)

// ToDo: allow changing of appDir via launch flag
// ToDo: don't create ~/.oipd/ dir if using nonstandard appDir

func init() {
logger.SetOutput(os.Stdout)

Expand Down Expand Up @@ -49,7 +52,6 @@ func init() {

viper.SetConfigName("config")
viper.AddConfigPath(appDir)
viper.AddConfigPath(".")
err = viper.ReadInConfig()
if err != nil {
log.Error("error loading config file, utilizing defaults", logger.Attrs{"err": err})
Expand Down

0 comments on commit cbd0706

Please sign in to comment.