add --quiet global option

This commit is contained in:
Cory Bennett
2017-09-04 18:12:32 -07:00
parent c0358eb67c
commit c226077320
23 changed files with 97 additions and 46 deletions
+3 -1
View File
@@ -78,7 +78,9 @@ func CmdRequest(o *oreo.Client, globals *jiracli.GlobalOptions, opts *RequestOpt
return err
}
if len(content) == 0 {
fmt.Println("No Content")
if !globals.Quiet.Value {
fmt.Println("No content in response")
}
return nil
}
var data interface{}