Skip to content

Commit

Permalink
docs: grammatically correct comments
Browse files Browse the repository at this point in the history
  • Loading branch information
azemetre committed Jun 2, 2023
1 parent a437642 commit e58cddf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/piscator/cast.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func init() {
castCmd.PersistentFlags().StringVarP(&password, "password", "p", "", "GitHub password")
castCmd.PersistentFlags().StringVarP(&enterprise, "enterprise", "e", "", "GitHub Enterprise URL")

// bind the token flag to a env keys
// bind the token flags to env keys
viper.BindPFlag("github_token", castCmd.PersistentFlags().Lookup("token"))
viper.BindPFlag("username", castCmd.PersistentFlags().Lookup("username"))
viper.BindPFlag("password", castCmd.PersistentFlags().Lookup("password"))
Expand Down
4 changes: 2 additions & 2 deletions cmd/piscator/reel.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ voyage like no other.`,
}

func init() {
viper.AutomaticEnv() // automatically use environment variables
viper.AutomaticEnv()

reelCmd.PersistentFlags().BoolVarP(&isSelfBool, "self", "s", false, "Your GitHub user, requires a personal access token")
reelCmd.PersistentFlags().BoolVarP(&isOrgBool, "org", "o", false, "Is an organization")
Expand All @@ -92,7 +92,7 @@ func init() {
reelCmd.PersistentFlags().StringVarP(&password, "password", "p", "", "GitHub password")
reelCmd.PersistentFlags().StringVarP(&enterprise, "enterprise", "e", "", "GitHub Enterprise URL")

// bind the token flag to a env keys
// bind the token flags to env keys
viper.BindPFlag("github_token", castCmd.PersistentFlags().Lookup("token"))
viper.BindPFlag("username", castCmd.PersistentFlags().Lookup("username"))
viper.BindPFlag("password", castCmd.PersistentFlags().Lookup("password"))
Expand Down

0 comments on commit e58cddf

Please sign in to comment.