Skip to content

Commit

Permalink
Merge pull request #96 from bandprotocol/nathachai/yoda-version
Browse files Browse the repository at this point in the history
Add `yoda version` command
  • Loading branch information
ntchjb authored Jun 10, 2021
2 parents 45e0375 + 5993687 commit 8cf6dc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yoda/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/crypto/keyring"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/version"
"github.com/spf13/cobra"
"github.com/spf13/viper"

Expand Down Expand Up @@ -73,7 +74,7 @@ func Main() {
configCmd(),
keysCmd(ctx),
runCmd(ctx),
// version.Cmd
version.NewVersionCommand(),
)
rootCmd.PersistentPreRunE = func(_ *cobra.Command, _ []string) error {
home, err := rootCmd.PersistentFlags().GetString(flags.FlagHome)
Expand Down

0 comments on commit 8cf6dc4

Please sign in to comment.