Skip to content

Commit

Permalink
Providing directory on run
Browse files Browse the repository at this point in the history
  • Loading branch information
drewwyatt committed Apr 26, 2019
1 parent 7bad64b commit f8fb649
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ func main() {
return
}

git := gUtils.Git{}
directory := flag.Arg(0) // first trailing argument after flags (if any)
if directory == "" {
directory = "."
}

git := gUtils.NewExecutor(directory)

goneBranches := []string{}
branchesToDelete := []string{}
Expand Down

0 comments on commit f8fb649

Please sign in to comment.