Merge pull request #682 from cloudskiff/feat/elapsedTime

Display elapsed time at end of scan
main
Elie 2021-06-22 18:22:00 +02:00 committed by GitHub
commit d1156500cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import (
"regexp" "regexp"
"strings" "strings"
"syscall" "syscall"
"time"
"github.com/cloudskiff/driftctl/pkg/telemetry" "github.com/cloudskiff/driftctl/pkg/telemetry"
"github.com/fatih/color" "github.com/fatih/color"
@ -230,6 +231,8 @@ func scanRun(opts *pkg.ScanOptions) error {
return err return err
} }
globaloutput.Printf(color.WhiteString("Done in %s\n", analysis.Duration.Round(time.Second)))
if !opts.DisableTelemetry { if !opts.DisableTelemetry {
telemetry.SendTelemetry(analysis) telemetry.SendTelemetry(analysis)
} }