aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--aports-ghpr.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/aports-ghpr.go b/aports-ghpr.go
index 851d925..9ba0a7e 100644
--- a/aports-ghpr.go
+++ b/aports-ghpr.go
@@ -13,6 +13,7 @@ import (
var (
owner = flag.String("o", "alpinelinux", "GitHub username of the repository owner")
repo = flag.String("r", "aports", "Name of the GitHub repository")
+ quiet = flag.Bool("q", false, "Be quiet")
)
func usage() {
@@ -43,7 +44,9 @@ func main() {
os.Exit(1)
}
- fmt.Println("searching for: ", aport)
+ if !*quiet {
+ fmt.Println("searching for: ", aport)
+ }
// TODO: allow set authentication
client := github.NewClient(nil)