Skip to content

Commit

Permalink
move utils to separate executable
Browse files Browse the repository at this point in the history
  • Loading branch information
gcmurphy committed Dec 28, 2017
1 parent e925d3c commit 4c49716
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cmd/gas/tools.go → cmd/gasutil/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package main

import (
"flag"
"fmt"
"go/ast"
"go/importer"
Expand Down Expand Up @@ -274,3 +275,14 @@ func dumpImports(files ...string) {
}
}
}

func main() {
tools := newUtils()
flag.Var(tools, "tool", "Utils to assist with rule development")
flag.Parse()

if len(tools.call) > 0 {
tools.run(flag.Args()...)
os.Exit(0)
}
}

0 comments on commit 4c49716

Please sign in to comment.