sprucing up the joint

This commit is contained in:
zricethezav committed 2018-02-22 19:06:04 -06:00
1 parent 6f5079c193
commit 1e250f1a14
6 files changed
+54 -55

No files matched your search

+3 -3
View File
@@ -16,9 +16,10 @@ var (
appRoot string
regexes []*regexp.Regexp
stopWords []string
assignRegex *regexp.Regexp
base64Chars string
hexChars string
opts *Options
assignRegex *regexp.Regexp
)
// config
@@ -55,7 +56,6 @@ func init() {
log.Fatalf("Unmarshal: %v", err)
}
// regex from config
stopWords = c.StopWords
for _, re := range c.Regexes {
regexes = append(regexes, regexp.MustCompile(re))
@@ -65,7 +65,7 @@ func init() {
func main() {
args := os.Args[1:]
opts := parseOptions(args)
opts = parseOptions(args)
if opts.RepoURL != "" {
start(opts)
} else if opts.UserURL != "" || opts.OrgURL != "" {