Implement the show command (#53)

This commit is contained in:
Arturo Filastò 2019-10-02 18:23:14 +02:00 committed by Simone Basso
commit f425d3f007
14 changed files with 231 additions and 55 deletions

View file

@ -11,6 +11,14 @@ import (
"github.com/ooni/probe-cli/internal/util"
)
// MeasurementJSON prints the JSON of a measurement
func MeasurementJSON(j map[string]interface{}) {
log.WithFields(log.Fields{
"type": "measurement_json",
"measurement_json": j,
}).Info("Measurement JSON")
}
// Progress logs a progress type event
func Progress(key string, perc float64, msg string) {
log.WithFields(log.Fields{