2018-02-07 19:02:18 +01:00
|
|
|
package nettest
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/alecthomas/kingpin"
|
2018-02-21 16:06:30 +01:00
|
|
|
"github.com/apex/log"
|
2018-05-03 14:59:55 +02:00
|
|
|
"github.com/ooni/probe-cli/internal/cli/root"
|
2018-02-07 19:02:18 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
cmd := root.Command("show", "Show a specific measurement")
|
|
|
|
|
|
|
|
cmd.Action(func(_ *kingpin.ParseContext) error {
|
2018-06-22 12:12:35 +02:00
|
|
|
_, err := root.Init()
|
|
|
|
if err != nil {
|
|
|
|
log.WithError(err).Error("failed to initialize root context")
|
|
|
|
return err
|
|
|
|
}
|
2018-06-25 13:19:54 +02:00
|
|
|
log.Error("this function is not implemented")
|
2018-06-22 12:12:35 +02:00
|
|
|
|
2018-02-07 19:02:18 +01:00
|
|
|
return nil
|
|
|
|
})
|
|
|
|
}
|