diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2019-05-03 15:15:20 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-05-03 15:15:20 +0200 |
commit | fd75935f19db6e165cdcd7fe95aee006377dacd4 (patch) | |
tree | bde2d1e41c059573ec0a8a219f5f3358d82c120a | |
parent | 6d19a5f537ed69ab769ece4e5123ddaa1491c3ec (diff) | |
download | aports-ghpr-fd75935f19db6e165cdcd7fe95aee006377dacd4.tar.bz2 aports-ghpr-fd75935f19db6e165cdcd7fe95aee006377dacd4.tar.xz |
-rw-r--r-- | aports-ghpr.go | 5 |
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) |