diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/core/libimagrt/src/runtime.rs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/core/libimagrt/src/runtime.rs b/lib/core/libimagrt/src/runtime.rs index 89587487..d8997a8b 100644 --- a/lib/core/libimagrt/src/runtime.rs +++ b/lib/core/libimagrt/src/runtime.rs @@ -336,10 +336,6 @@ impl<'a> Runtime<'a> { &self.cli_matches } - pub fn ids_from_stdin(&self) -> bool { - self.has_input_pipe - } - pub fn ids<T: IdPathProvider>(&self) -> Result<Option<Vec<StoreId>>> { use std::io::Read; @@ -410,6 +406,16 @@ impl<'a> Runtime<'a> { self.has_output_pipe } + pub fn input_is_pipe(&self) -> bool { + self.has_input_pipe + } + + /// Alias for Runtime::input_is_pipe() + pub fn ids_from_stdin(&self) -> bool { + self.input_is_pipe() + } + + /// Check whether the runtime ignores touched ids /// /// "Ignoring" in this context means whether the runtime prints them or not. |