mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2024-12-12 19:18:24 +02:00
parent
883d8fc72f
commit
9598331fa8
@ -197,6 +197,7 @@ impl Args {
|
|||||||
.invert_match(self.invert_match)
|
.invert_match(self.invert_match)
|
||||||
.max_count(self.max_count)
|
.max_count(self.max_count)
|
||||||
.mmap(self.mmap)
|
.mmap(self.mmap)
|
||||||
|
.no_messages(self.no_messages)
|
||||||
.quiet(self.quiet)
|
.quiet(self.quiet)
|
||||||
.text(self.text)
|
.text(self.text)
|
||||||
.build()
|
.build()
|
||||||
|
@ -156,6 +156,14 @@ impl WorkerBuilder {
|
|||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// If enabled, error messages are suppressed.
|
||||||
|
///
|
||||||
|
/// This is disabled by default.
|
||||||
|
pub fn no_messages(mut self, yes: bool) -> Self {
|
||||||
|
self.opts.no_messages = yes;
|
||||||
|
self
|
||||||
|
}
|
||||||
|
|
||||||
/// If enabled, don't show any output and quit searching after the first
|
/// If enabled, don't show any output and quit searching after the first
|
||||||
/// match is found.
|
/// match is found.
|
||||||
pub fn quiet(mut self, yes: bool) -> Self {
|
pub fn quiet(mut self, yes: bool) -> Self {
|
||||||
|
Loading…
Reference in New Issue
Block a user