0b4a49190a
This diff refactors the ./internal/cmd/miniooni pkg and moves the code for running experiments inside of the ./internal/oonirun pkg. It's the first concrete step towards https://github.com/ooni/probe/issues/2184.
22 lines
315 B
Go
22 lines
315 B
Go
// Command miniooni is a simple binary for research and QA purposes
|
|
// with a CLI interface similar to MK and OONI Probe v2.x.
|
|
package main
|
|
|
|
//
|
|
// Main function
|
|
//
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
defer func() {
|
|
if s := recover(); s != nil {
|
|
fmt.Fprintf(os.Stderr, "FATAL: %s\n", s)
|
|
}
|
|
}()
|
|
Main()
|
|
}
|