-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add replay policy option for stream sub #1286
base: main
Are you sure you want to change the base?
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=instant
and--replay=original
tonats sub --stream=...