Skip to content

Commit

Permalink
brew tuning v2 integration is hard :(
Browse files Browse the repository at this point in the history
  • Loading branch information
tg44 committed Oct 13, 2021
1 parent ae5a70b commit 8bde077
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Will print help!

```
mkdir -p ~/.heptapod/rules
cp -R $(brew --prefix heptapod)/rules ~/.heptapod/rules
cp -R $(brew --prefix heptapod)/rules ~/.heptapod
```
This will move the currently added ruleset to `~/.heptapod/rules`

Expand Down
19 changes: 10 additions & 9 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ func main() {
},
Action: func(c *cli.Context) error {
if verbose {
fmt.Println(version)
fmt.Println(commit)
fmt.Println(date)
fmt.Println("version: ", version)
fmt.Println("commit: ", commit)
fmt.Println("date: ", date)
} else {
fmt.Println(version)
}
Expand Down Expand Up @@ -126,7 +126,8 @@ func main() {
Action: func(c *cli.Context) error {
if dry {
res := pkg.GetExcludedPaths(rulePath, par, buffer, verbose)
println(res)
fmt.Print(strings.Join(res,"\r\n"))
fmt.Print("\n")
} else {
res := pkg.GetExcludedPaths(rulePath, par, buffer, verbose)
tmutil.AddPathsToTM(res, logDir, buffer, verbose)
Expand All @@ -144,7 +145,7 @@ func main() {
Flags: []cli.Flag{},
Action: func(c *cli.Context) error {
res := tmutil.GetExcludeList()
println(res)
fmt.Println(res)
return nil
},
},
Expand Down Expand Up @@ -206,18 +207,18 @@ func ruleTable(path string, all bool) error {
if err != nil {
return err
}
println("Enabled rules:")
fmt.Println("Enabled rules:")
writeRules(list.Enabled)
if all {
println("Disabled rules:")
fmt.Println("Disabled rules:")
writeRules(list.Disabled)
}
if all {
println("Errors:")
fmt.Println("Errors:")
writeErrorRules(list.FileErrors)
}
if all {
println("Type parse errors:")
fmt.Println("Type parse errors:")
writeTypeErrorRules(list.TypeErrors)
}
return nil
Expand Down

0 comments on commit 8bde077

Please sign in to comment.