Don not pring package info in grep

This commit is contained in:
Phani Teja Marupaka
2020-09-15 00:15:52 -07:00
parent 00f0fd7109
commit cea2986574
3 changed files with 10 additions and 12 deletions

View File

@@ -120,6 +120,7 @@ func (r *GrepRunner) runE(c *cobra.Command, args []string) error {
recurseSubPackages: r.RecurseSubPackages,
cmdRunner: r,
rootPkgPath: args[1],
skipPkgPathPrint: true,
}
return e.execute()
@@ -152,5 +153,6 @@ func (r *GrepRunner) executeCmd(w io.Writer, pkgPath string) error {
fmt.Fprintf(w, "%s\n", err.Error())
}
}
fmt.Fprintf(w, "---")
return nil
}