Skip to content

Commit 6d2ee8c

Browse files
bump version
1 parent c87ce6d commit 6d2ee8c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

cmd/root.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"path/filepath"
77

88
"github.com/ananthakumaran/paisa/internal/config"
9+
"github.com/samber/lo"
910
log "github.com/sirupsen/logrus"
1011
"github.com/spf13/cobra"
1112
)
@@ -33,7 +34,8 @@ func initConfig() {
3334
log.SetFormatter(&log.TextFormatter{DisableTimestamp: true, ForceColors: true})
3435

3536
currentCommand, _, _ := rootCmd.Find(os.Args[1:])
36-
if currentCommand.Name() == "init" {
37+
38+
if !lo.Contains([]string{"serve", "update"}, currentCommand.Name()) {
3739
return
3840
}
3941

cmd/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var versionCmd = &cobra.Command{
99
Use: "version",
1010
Short: "Print the version information",
1111
Run: func(cmd *cobra.Command, args []string) {
12-
fmt.Println("Version:", "0.4.1")
12+
fmt.Println("Version:", "0.4.2")
1313
},
1414
}
1515

0 commit comments

Comments
 (0)