-q to silence stderr, -qq to silence everything.

This commit is contained in:
fiatjaf
2024-01-24 22:38:51 -03:00
parent 3f7089e27e
commit 14b69f36cf
9 changed files with 26 additions and 22 deletions

4
req.go
View File

@@ -231,7 +231,7 @@ example:
fn = pool.SubMany
}
for ie := range fn(c.Context, relayUrls, nostr.Filters{filter}) {
fmt.Println(ie.Event)
stdout(ie.Event)
}
} else {
// no relays given, will just print the filter
@@ -243,7 +243,7 @@ example:
result = string(j)
}
fmt.Println(result)
stdout(result)
}
}