mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fixup! feat(cli): allow printing selected DDS messages to the console
This commit is contained in:
parent
0f40d2ec6e
commit
4bb3f37949
1 changed files with 6 additions and 2 deletions
|
|
@ -93,8 +93,12 @@ impl Client {
|
||||||
let payload = Payload::from_str(&line).unwrap();
|
let payload = Payload::from_str(&line).unwrap();
|
||||||
if line.starts_with("hey,") {
|
if line.starts_with("hey,") {
|
||||||
Self::handle_hey(&line);
|
Self::handle_hey(&line);
|
||||||
if sender.matches(payload.sender) {
|
if !sender.matches(payload.sender) {
|
||||||
println!("{}", line);
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if kinds.contains(payload.body.kind()) {
|
||||||
|
println!("{}", &line);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ! sender.matches(payload.sender) {
|
if ! sender.matches(payload.sender) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue