Skip to content

Commit

Permalink
fixup! feat(cli): allow printing selected DDS messages to the console
Browse files Browse the repository at this point in the history
  • Loading branch information
mikavilpas committed May 4, 2024
1 parent bd9ee17 commit d89997b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions yazi-dds/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,12 @@ impl Client {
let payload = Payload::from_str(&line).unwrap();
if line.starts_with("hey,") {
Self::handle_hey(&line);
if sender.matches(payload.sender) {
println!("{}", line);
if !sender.matches(payload.sender) {
continue;
}

if kinds.contains(payload.body.kind()) {
println!("{}", &line);
}
} else {
if ! sender.matches(payload.sender) {
Expand Down

0 comments on commit d89997b

Please sign in to comment.