Improve behavior of `--traffic` Vs sandbox self-destruction
The following discussion from !28 (merged) should be addressed:
-
@smondet started a discussion: (+1 comment) so right now, after the traffic generation the sandbox self-destructs, but there are 3 behaviors we may want:
- become interactive (this could be the default)
- continue until a given level (this could be the behavior of
--traffic=..
+--until-level=..
) - self-destruct (this could just be like (2) but with the level being small enough, like 0 or 1)
The value carried by the
Cmdliner.Term.t
could be(`Dsl_traffic (`Dsl_command cmd, what_to_do_next))
(andwhat_to_do_next
being`Interactive
or`Wait_level _
)If you think this should be done in a separate MR just let me know.