Skip to content

Commit

Permalink
adding boolean plaintext flag
Browse files Browse the repository at this point in the history
  • Loading branch information
bketelsen committed Oct 27, 2014
1 parent 07b825d commit b86b4e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/crypt/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 106,13 @@ func setCmd(flagset *flag.FlagSet) {
}

if plaintext {
fmt.Println("Operating without encryption.")
err := setPlain(key, backendStore, d)
if err != nil {
log.Fatal(err)
return
}
return
}
err = setEncrypted(key, keyring, d, backendStore)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions bin/crypt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 23,7 @@ var (
func init() {
flagset.StringVar(&backendName, "backend", "etcd", "backend provider")
flagset.StringVar(&endpoint, "endpoint", "", "backend url")
flagset.BoolVar(&plaintext, "plaintext", false, "skip encryption")
}

func main() {
Expand Down

0 comments on commit b86b4e5

Please sign in to comment.