Code cleanup and badges

This commit is contained in:
Anton Postov committed 2018-02-17 10:51:20 +03:00
1 parent cf4c157141
commit a9c5d5a953
6 files changed
+32 -31

No files matched your search

+10 -4
View File
@@ -1,6 +1,7 @@
package main
import (
"log"
"os"
"regexp"
)
@@ -12,7 +13,12 @@ var (
)
func init() {
appRoot, _ = os.Getwd()
var err error
appRoot, err = os.Getwd()
if err != nil {
log.Fatalf("Can't get working dir: %s", err)
}
// TODO update regex to look for things like:
// TODO ability to add/filter regex
// client("AKAI32fJ334...",
@@ -30,7 +36,7 @@ func init() {
func main() {
args := os.Args[2:]
repoUrl := os.Args[1]
opts := parseOptions(args, repoUrl)
start(opts, repoUrl)
repoURL := os.Args[1]
opts := parseOptions(args)
start(opts, repoURL)
}