Skip to content

Commit

Permalink
Bump version to v0.4.0, fix token file discovery when using a non-sta…
Browse files Browse the repository at this point in the history
…ndard token path
  • Loading branch information
marevers committed Mar 13, 2024
1 parent 0580650 commit 6e39da6
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 @@ -28,7 +28,7 @@ var cfgFile string
var tokenFile string

// Pleasant-CLI version
var version = "v0.3.1"
var version = "v0.4.0"

// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Expand Down Expand Up @@ -92,7 +92,7 @@ func initConfig() {
// Use token file from the flag
if tokenFile != "" {
// Use token file from the flag
viper.AddConfigPath(tokenFile)
viper.AddConfigPath(filepath.Dir(tokenFile))
viper.SetConfigType("yaml")
viper.SetConfigName(filepath.Base(tokenFile))
viper.MergeInConfig()
Expand Down

0 comments on commit 6e39da6

Please sign in to comment.