Skip to content

Commit

Permalink
--grep is set so only matched results will be displayed !
Browse files Browse the repository at this point in the history
  • Loading branch information
vdesabou committed Jun 27, 2023
1 parent 67faef0 commit cf1ad12
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions scripts/cli/playground
Original file line number Diff line number Diff line change
Expand Up @@ -10016,6 +10016,11 @@ playground_topic_consume_command() {
log "✨ Display content of topic $topic, it contains $nb_messages messages"
fi

if [[ -n "$grep_string" ]]
then
logwarn "--grep is set so only matched results will be displayed !"
fi

if [[ -n "$timestamp_field" ]]
then
log "📈 plotting results.."
Expand Down
7 changes: 6 additions & 1 deletion scripts/cli/src/topic_consume_command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ do
log "✨ Display content of topic $topic, it contains $nb_messages messages"
fi

if [[ -n "$grep_string" ]]
then
logwarn "--grep is set so only matched results will be displayed !"
fi

if [[ -n "$timestamp_field" ]]
then
log "📈 plotting results.."
Expand Down Expand Up @@ -337,7 +342,7 @@ do
display_line=0
fi
fi

if [ $display_line -eq 1 ]
then
echo "$line"
Expand Down

0 comments on commit cf1ad12

Please sign in to comment.