add gitleak to cli

This commit is contained in:
Maidul Islam
2023-05-15 19:31:36 -04:00
parent 781e0b24c8
commit b3e68cf3fb
47 changed files with 8065 additions and 128 deletions

View File

@@ -8,7 +8,7 @@ import (
"github.com/mattn/go-isatty"
"github.com/muesli/ansi"
"github.com/muesli/reflow/truncate"
log "github.com/sirupsen/logrus"
"github.com/rs/zerolog/log"
"golang.org/x/term"
)
@@ -39,9 +39,9 @@ func Table(headers [3]string, rows [][3]string) {
width, _, err := term.GetSize(int(os.Stdout.Fd()))
if err != nil {
if shouldTruncate {
log.Errorf("error getting terminal size: %s", err)
log.Error().Msgf("error getting terminal size: %s", err)
} else {
log.Debug(err)
log.Debug().Err(err)
}
}