Skip to content
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

Fix teragrep exec syslog stream command not working with subsequent commands when using host and port parameters #67

Merged
merged 4 commits into from
Aug 21, 2024

Conversation

51-code
Copy link
Contributor

@51-code 51-code commented Aug 14, 2024

Fixes #66.

Basically the issue was that the port number was recognizable only in the grammar mode "COMMAND_TERAGREP_MODE_IP", but when the parser read it, it didn't pop the grammar mode back to the mode where it can recognize other tokens again (like the pipe token).

Created unit tests for the command and refactored the whole unit test file to not throw exceptions in tests because that is not good practice.

@51-code 51-code added the bug Something isn't working label Aug 14, 2024
@51-code 51-code requested a review from eemhu August 14, 2024 12:36
@51-code 51-code self-assigned this Aug 14, 2024
@51-code 51-code requested a review from kortemik August 14, 2024 12:44
… and use the name as prefix in the tokens in that mode
@51-code 51-code requested a review from kortemik August 21, 2024 07:33
@kortemik kortemik merged commit 1983e46 into teragrep:main Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Commands after teragrep exec syslog stream doesn't work if host and path parameters are given
3 participants