Skip to content

Commit

Permalink
feat: load ENV to make it work with cosmos omnibus (#73)
Browse files Browse the repository at this point in the history
* chore: Update .gitignore file (sdk_upgrade)

Updated .gitignore file to include *.txt and .idea directories.

* feat(cmd): update teritorid root command

- Add AutomaticEnv() to initClientCtx.Viper (issue sdk_upgrade)
  • Loading branch information
omniwired authored Jan 12, 2024
1 parent d35bf96 commit 7db2387
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
*.zip
testnetv2
data
*.txt
*.txt
.idea
3 changes: 2 additions & 1 deletion cmd/teritorid/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
WithAccountRetriever(types.AccountRetriever{}).
WithHomeDir(teritori.DefaultNodeHome).
WithViper("")
initClientCtx.Viper.AutomaticEnv()

rootCmd := &cobra.Command{
Use: "teritorid",
Short: "Stargate Cosmos Hub App",
Short: "Teritori Network",
PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {
initClientCtx, err := client.ReadPersistentCommandFlags(initClientCtx, cmd.Flags())
if err != nil {
Expand Down

0 comments on commit 7db2387

Please sign in to comment.