mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +01:00
repoDescriptor->repoInfo
This commit is contained in:
1 parent
e79ffc6ae8
commit
c2143c5843
9 files changed
+23
-28
No files matched your search
+3
-6
@@ -57,15 +57,12 @@ func init() {
|
||||
}
|
||||
|
||||
// Run is the entry point for gitleaks
|
||||
func Run() {
|
||||
func Run(optsL *Options) {
|
||||
var (
|
||||
leaks []Leak
|
||||
err error
|
||||
)
|
||||
opts, err = setupOpts()
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
opts = optsL
|
||||
config, err = newConfig()
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
@@ -84,7 +81,7 @@ func Run() {
|
||||
|
||||
// start audits
|
||||
if opts.Repo != "" || opts.RepoPath != "" {
|
||||
repoD, err := newRepoD()
|
||||
repoD, err := newRepoInfo()
|
||||
if err != nil {
|
||||
goto postAudit
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user