Skip to content

Commit

Permalink
Update password flag to fetch it's default value from env [ref #13]
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleiade committed Nov 24, 2013
1 parent 067795a commit d32caec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flags.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package trousseau

import (
"os"
"github.com/codegangsta/cli"
)

func PasswordFlag() cli.StringFlag {
return cli.StringFlag{
"password",
"",
os.Getenv("TROUSSEAU_PASSWORD"),
"primary gpg key password to decrypt trousseau",
}
}
Expand Down

0 comments on commit d32caec

Please sign in to comment.