-
Notifications
You must be signed in to change notification settings - Fork 66
Produce and consume records #1598
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
5e1f99f
feat: added produce command
jackdelahunt 5201eb6
chore: cleaned up produce command
jackdelahunt 6b53d60
feat: file flag for topic produce
jackdelahunt d4e1519
feat: table view and success message for topic produce
jackdelahunt f478280
feat: new consume command
jackdelahunt dab8867
feat: table output for consume
jackdelahunt a7e7348
feat: output format for consume
jackdelahunt 4838440
feat: wait flag for consuming records
jackdelahunt 03ae436
fix: clearer documentation
jackdelahunt cf62c99
feat: format flag for conusme
jackdelahunt d84993e
fix: validating flags given to consume
jackdelahunt 0c92d90
fix: consume with --wait after records are produced no longer causes …
jackdelahunt 29f0a2f
feat: key value format for consume
jackdelahunt 53fa935
feat: more error checking for produce and consume
jackdelahunt 562364a
fix: --offset and --from are exclusive in consume
jackdelahunt 1fedfec
feat: unix timestamp support for consume
jackdelahunt cbdecd3
feat: made consume/produce hidden and given more examples
jackdelahunt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering if we need 2 flags for Unix Epoch and Actual Date.
I would prefer 2 flags for simplicity of documentation and validation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure how much epoch is used so I was thinking of some kind of falg to say that is what yuo are using.
For example, use --from as normal either ISO or unix time and just have another bool flag like --unix-time which tells the cli how to parse time default would be iso.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I personally think flag modifying another flag can be hard to work on and confusing.
I would suggest:
--from-time (ISO 8601 date - short format)
--from-timestamp (epoch/unix timestamp)
I would love to save this discussion somewhere so we can recall this when building CLI guidelines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw. That is my opinion and this is opinionated part so do not feel that you need to do it this way. It is more about my personal preference to keep docs clean.