ooni-probe-cli/internal/cmd
Simone Basso ff1c170562
feat(engine): allow runner to return many measurements (#527)
This is required to implement websteps, which is currently tracked
by https://github.com/ooni/probe/issues/1733.

We introduce the concept of async runner. An async runner will
post measurements on a channel until it is done. When it is done,
it will close the channel to notify the reader about that.

This change causes sync experiments now to strictly return either
a non-nil measurement or a non-nil error.

While this is a pretty much obvious situation in golang, we had
some parts of the codebase that were not robust to this assumption
and attempted to submit a measurement after the measure call
returned an error.

Luckily, we had enough tests to catch this change in our assumption
and this is why there are extra docs and tests changes.
2021-09-30 00:54:52 +02:00
..
apitool refactor: migrate apitool from netx to netxlite (#496) 2021-09-09 01:19:17 +02:00
e2epostprocess cleanup(all): stop using deprecated ioutil functions (#381) 2021-06-15 14:01:45 +02:00
getresources refactor: redesign how we import assets (#260) 2021-04-01 16:57:31 +02:00
jafar refactor: merge dnsx and errorsx into netxlite (#517) 2021-09-28 12:42:01 +02:00
miniooni feat(engine): allow runner to return many measurements (#527) 2021-09-30 00:54:52 +02:00
oohelper refactor: merge dnsx and errorsx into netxlite (#517) 2021-09-28 12:42:01 +02:00
oohelperd refactor: merge dnsx and errorsx into netxlite (#517) 2021-09-28 12:42:01 +02:00
ptxclient feat: introduce ptx package for pluggable transports dialers (#373) 2021-06-14 10:20:54 +02:00
README.md doc: ensure all top dirs have an explanatory README (#214) 2021-02-03 16:54:00 +01:00

Directory github.com/ooni/probe-cli/internal/cmd

This directory contains the source code for the CLI tools we build but we don't want to expose to the outside world. That is, you can only build these tools if you have cloned this repo.