Skip to content

Commit

Permalink
only print the response body if verbose is true
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinburke committed Jun 22, 2015
1 parent 8bd2753 commit 063cd8d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lucifer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ func doInvalidate(flags *flag.FlagSet, sync bool, verbose bool) {
if err != nil {
handleError(err, verbose)
}
fmt.Println(body)
if verbose {
fmt.Println(body)
}
}

func doRun(flags *flag.FlagSet, bail bool, verbose bool, grep string) {
Expand All @@ -155,7 +157,9 @@ func doRun(flags *flag.FlagSet, bail bool, verbose bool, grep string) {
if err != nil {
handleError(err, verbose)
}
fmt.Println(body)
if verbose {
fmt.Println(body)
}
}

func main() {
Expand Down

0 comments on commit 063cd8d

Please sign in to comment.