feat: add elapsed time at end of scan
parent
797f527d59
commit
cba595d9f1
|
@ -7,6 +7,7 @@ import (
|
|||
"regexp"
|
||||
"strings"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/cloudskiff/driftctl/pkg/telemetry"
|
||||
"github.com/fatih/color"
|
||||
|
@ -230,6 +231,8 @@ func scanRun(opts *pkg.ScanOptions) error {
|
|||
return err
|
||||
}
|
||||
|
||||
globaloutput.Printf(color.WhiteString("Done in %s\n", analysis.Duration.Round(time.Second)))
|
||||
|
||||
if !opts.DisableTelemetry {
|
||||
telemetry.SendTelemetry(analysis)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue