Add replay policy option for stream sub#1286
Conversation
|
Thanks for the contribution, I think though its a slippery slope - down this path lies adding every one of the "consumer add" options and its a lot and overly complicates the sub command. I think its better to keep this one a bit minimal but - as it already supports - allow for binding to a pre-created consumer for cases that need special handling. |
|
From a users perspective, it seems convenient to be able to subscribe to a stream without worrying about pre-creating a consumer and then binding to it. It would probably be better to create a single place where consumer arguments are handled and then use that from the For what it's worth, the reason I implemented this was to be able to use the other options available for |
|
We certainly do need to redesign some of this - especially |
|
I was thinking about how to present the help output if all of the consumer options were also available for |
|
While yes that would be an improvement, the library we use for CLI handling doesn't support that kind of thing at present. It would also be a huge amount of duplication. Not against the idea per se, just with current code I am not ready to do that. We have a big release coming up soon and after I want to revisit a number of the sub command and modernise them, could keep it in mind for then. For now I'll rather park this one for later. |
Adds
--replay=instantand--replay=originaltonats sub --stream=...