feat: add elapsed time at end of scan

main
sundowndev 2021-05-25 17:34:31 +02:00
parent 797f527d59
commit cba595d9f1
1 changed files with 3 additions and 0 deletions

View File

@ -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)
}