Skip to content

Commit

Permalink
Changed default configuration file path
Browse files Browse the repository at this point in the history
Signed-off-by: Will Fantom <willfantom@gmail.com>
  • Loading branch information
WillFantom committed Apr 23, 2021
1 parent 52b4db3 commit 7d4cac7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
)

const (
configFileName = "config"
configFileName = "dbxcli"
tokenPersonal = "personal"
tokenTeamAccess = "teamAccess"
tokenTeamManage = "teamManage"
Expand Down Expand Up @@ -208,7 +208,7 @@ func init() {
viper.SetConfigType("json")

// default configuration path
viper.AddConfigPath(path.Join(dir, ".config", "dbxcli"))
viper.AddConfigPath(path.Join(dir, ".config"))
// short configuration path (useful for docker and testing)
viper.AddConfigPath("/config/")
// super useful for testing
Expand Down

0 comments on commit 7d4cac7

Please sign in to comment.