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.
23 lines
467 B
Go
23 lines
467 B
Go
package registry
|
|
|
|
//
|
|
// Registers the `tlstool' experiment.
|
|
//
|
|
|
|
import (
|
|
"github.com/ooni/probe-cli/v3/internal/engine/experiment/tlstool"
|
|
"github.com/ooni/probe-cli/v3/internal/model"
|
|
)
|
|
|
|
func init() {
|
|
AllExperiments["tlstool"] = &Factory{
|
|
build: func(config interface{}) model.ExperimentMeasurer {
|
|
return tlstool.NewExperimentMeasurer(
|
|
*config.(*tlstool.Config),
|
|
)
|
|
},
|
|
config: &tlstool.Config{},
|
|
inputPolicy: model.InputOrQueryBackend,
|
|
}
|
|
}
|