Skip to content

Commit

Permalink
Add constants for trousseau password env var name [ref #13]
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleiade committed Nov 24, 2013
1 parent d32caec commit ba00e58
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ const (
CONFIG_KEY_RECIPIENTS = "recipients"
CONFIG_KEY_PASSWORD = "password"
)

const (
ENV_PASSPHRASE_KEY = "TROUSSEAU_PASSWORD"
)
2 changes: 1 addition & 1 deletion flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
func PasswordFlag() cli.StringFlag {
return cli.StringFlag{
"password",
os.Getenv("TROUSSEAU_PASSWORD"),
os.Getenv(ENV_PASSPHRASE_KEY),
"primary gpg key password to decrypt trousseau",
}
}
Expand Down

0 comments on commit ba00e58

Please sign in to comment.