We would like to have basic control over checking status, pausing testing, and starting testing. Detailed control would be desirable.
As the code functions right now, the parser is unable to allow such arguments like this:
$ ./run service check test1 test2 test3
$ ./run service pause test1 test3
$ ./run service start test2 test3
We can’t do this because of how the clap library functions, getting such error:
error[E0277]: the trait bound `ServiceSubcommand: clap::Args` is not satisfied --> src/pipes/listen.rs:21:13 | 21 | Service(ServiceSubcommand), | ^^^^^^^^^^^^^^^^^ the trait `clap::Args` is not implemented for `ServiceSubcommand` | = help: the following other types implement trait `clap::Args`: Box<T> Cli ServiceArgs
Before we can do Check, Pause, Start, the baseline needs to be done
Check should print out the info of the service
Pause should pause checking/testing the service every x seconds
Start, pretty much just start it again after having been stopped.
To clear up some confusion, this is probably not a bad idea
Nice to have