0bc6aae601
Part of https://github.com/ooni/probe/issues/2184, because I wanted to allow swapping commands and options more freely. As a side effect, this PR closes https://github.com/ooni/probe/issues/2248. AFAICT, every usage that was legal before is still legal. What has changed seems the freedom to swap commands and options and a much better help that lists the available options.
26 lines
591 B
Go
26 lines
591 B
Go
package registry
|
|
|
|
//
|
|
// Registers the `web_connectivity@v0.5' experiment.
|
|
//
|
|
// See https://github.com/ooni/probe/issues/2237
|
|
//
|
|
|
|
import (
|
|
"github.com/ooni/probe-cli/v3/internal/experiment/webconnectivity"
|
|
"github.com/ooni/probe-cli/v3/internal/model"
|
|
)
|
|
|
|
func init() {
|
|
AllExperiments["web_connectivity@v0.5"] = &Factory{
|
|
build: func(config any) model.ExperimentMeasurer {
|
|
return webconnectivity.NewExperimentMeasurer(
|
|
config.(*webconnectivity.Config),
|
|
)
|
|
},
|
|
config: &webconnectivity.Config{},
|
|
interruptible: false,
|
|
inputPolicy: model.InputOrQueryBackend,
|
|
}
|
|
}
|