Skip to content

Commit

Permalink
Merge pull request #27 from 23technologies/use-env-prefix
Browse files Browse the repository at this point in the history
Use 23KECTL_ as env prefix
  • Loading branch information
fynluk committed Apr 6, 2023
2 parents 3edf993 + e9bd925 commit 3a8da35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ Dependent on your relationship with 23T you will be charged for using 23KE.
`,
RunE: func(cmd *cobra.Command, args []string) error {
// todo check required flags
viper.SetEnvPrefix("23KECTL_")
err := viper.ReadInConfig()
if (err != nil && !errors.Is(err, fs.ErrNotExist)) {
if err != nil && !errors.Is(err, fs.ErrNotExist) {
fmt.Print(err)
return err
}
Expand Down

0 comments on commit 3a8da35

Please sign in to comment.