Closed baltpeter closed 1 year ago
:+1:
I think I'm going to implement this like this:
--timeout
flag and make it not required. If no timeout is provided, we'll default to the interactive timeout. I think the CLI is more likely to be used for manual analysis, so this makes more sense as a default.I also want to add support for multiple traffic collections. I've been wishing for something like that for a long time. How useful would it be to be able to "insert a break" at some point in the collection to e.g. produce a "before consent dialog interaction" and a separate "after consent dialog interaction" HAR file in a manual analysis?
For that, I think I'll introduce a new flag (--multiple-collections
maybe?) that would conflict with --timeout
. If that is provided, after each time the user stops an interactive timeout, we would ask them "enter a name to start a new traffic collection or press enter to end".
This is going to make manual analyses so much nicer.
https://github.com/tweaselORG/cli/assets/4048809/df5436f6-e79d-4c0c-8881-9d7555e94595
Instead of requiring the user to specify a fixed timeout in advance, for manual analyses, it would be much for useful to wait until the user presses Ctrl + C or something like that.