pub fn uu_app() -> Commanddiff --git a/dev/src/uu_cat/cat.rs.html b/dev/src/uu_cat/cat.rs.html index 317fb3192..b985d9a00 100644 --- a/dev/src/uu_cat/cat.rs.html +++ b/dev/src/uu_cat/cat.rs.html @@ -645,7 +645,6 @@ 645 646 647 -648
// This file is part of the uutils coreutils package.
//
// (c) Jordi Boggiano <j.boggiano@seld.be>
@@ -681,11 +680,10 @@
use std::os::unix::fs::FileTypeExt;
#[cfg(unix)]
use std::os::unix::net::UnixStream;
-use uucore::format_usage;
+use uucore::{format_usage, help_section, help_usage};
-static USAGE: &str = "{} [OPTION]... [FILE]...";
-static ABOUT: &str = "Concatenate FILE(s), or standard input, to standard output
-With no FILE, or when FILE is -, read standard input.";
+const USAGE: &str = help_usage!("cat.md");
+const ABOUT: &str = help_section!("about", "cat.md");
#[derive(Error, Debug)]
enum CatError {
diff --git a/dev/src/uu_comm/comm.rs.html b/dev/src/uu_comm/comm.rs.html
index f50caeccc..8ffa5e18c 100644
--- a/dev/src/uu_comm/comm.rs.html
+++ b/dev/src/uu_comm/comm.rs.html
@@ -240,21 +240,12 @@
pub const TOTAL: &str = "total";
}
-fn mkdelim(col: usize, opts: &ArgMatches) -> String {
- let mut s = String::new();
- let delim = match opts.get_one::<String>(options::DELIMITER).unwrap().as_str() {
- "" => "\0",
- delim => delim,
- };
-
- if col > 1 && !opts.get_flag(options::COLUMN_1) {
- s.push_str(delim.as_ref());
- }
- if col > 2 && !opts.get_flag(options::COLUMN_2) {
- s.push_str(delim.as_ref());
- }
-
- s
+fn column_width(col: &str, opts: &ArgMatches) -> usize {
+ if opts.get_flag(col) {
+ 0
+ } else {
+ 1
+ }
}
fn ensure_nl(line: &mut String) {
@@ -278,7 +269,16 @@
}
fn comm(a: &mut LineReader, b: &mut LineReader, opts: &ArgMatches) {
- let delim: Vec<String> = (0..4).map(|col| mkdelim(col, opts)).collect();
+ let delim = match opts.get_one::<String>(options::DELIMITER).unwrap().as_str() {
+ "" => "\0",
+ delim => delim,
+ };
+
+ let width_col_1 = column_width(options::COLUMN_1, opts);
+ let width_col_2 = column_width(options::COLUMN_2, opts);
+
+ let delim_col_2 = delim.repeat(width_col_1);
+ let delim_col_3 = delim.repeat(width_col_1 + width_col_2);
let ra = &mut String::new();
let mut na = a.read_line(ra);
@@ -306,7 +306,7 @@
Ordering::Less => {
if !opts.get_flag(options::COLUMN_1) {
ensure_nl(ra);
- print!("{}{}", delim[1], ra);
+ print!("{ra}");
}
ra.clear();
na = a.read_line(ra);
@@ -315,7 +315,7 @@
Ordering::Greater => {
if !opts.get_flag(options::COLUMN_2) {
ensure_nl(rb);
- print!("{}{}", delim[2], rb);
+ print!("{delim_col_2}{rb}");
}
rb.clear();
nb = b.read_line(rb);
@@ -324,7 +324,7 @@
Ordering::Equal => {
if !opts.get_flag(options::COLUMN_3) {
ensure_nl(ra);
- print!("{}{}", delim[3], ra);
+ print!("{delim_col_3}{ra}");
}
ra.clear();
rb.clear();
@@ -336,7 +336,7 @@
}
if opts.get_flag(options::TOTAL) {
- println!("{total_col_1}\t{total_col_2}\t{total_col_3}\ttotal");
+ println!("{total_col_1}{delim}{total_col_2}{delim}{total_col_3}{delim}total");
}
}
diff --git a/dev/src/uu_cp/cp.rs.html b/dev/src/uu_cp/cp.rs.html
index 86afbfdb2..b7d472c79 100644
--- a/dev/src/uu_cp/cp.rs.html
+++ b/dev/src/uu_cp/cp.rs.html
@@ -1861,9 +1861,6 @@
1861
1862
1863
-1864
-1865
-1866
#![allow(clippy::missing_safety_doc)]
#![allow(clippy::extra_unused_lifetimes)]
@@ -1906,7 +1903,7 @@
use uucore::fs::{
canonicalize, paths_refer_to_same_file, FileInformation, MissingHandling, ResolveMode,
};
-use uucore::{crash, format_usage, prompt_yes, show_error, show_warning};
+use uucore::{crash, format_usage, help_section, help_usage, prompt_yes, show_error, show_warning};
use crate::copydir::copy_directory;
@@ -2094,13 +2091,10 @@
progress_bar: bool,
}
-static ABOUT: &str = "Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.";
+const ABOUT: &str = help_section!("about", "cp.md");
static EXIT_ERR: i32 = 1;
-const USAGE: &str = "\
- {} [OPTION]... [-T] SOURCE DEST
- {} [OPTION]... SOURCE... DIRECTORY
- {} [OPTION]... -t DIRECTORY SOURCE...";
+const USAGE: &str = help_usage!("cp.md");
// Argument constants
mod options {
diff --git a/dev/src/uu_tail/args.rs.html b/dev/src/uu_tail/args.rs.html
index 459faae38..ac93f73ca 100644
--- a/dev/src/uu_tail/args.rs.html
+++ b/dev/src/uu_tail/args.rs.html
@@ -515,18 +515,24 @@
515
516
517
+518
+519
+520
+521
+522
// * This file is part of the uutils coreutils package.
// *
// * For the full copyright and license information, please view the LICENSE
// * file that was distributed with this source code.
-// spell-checker:ignore (ToDO) kqueue Signum
+// spell-checker:ignore (ToDO) kqueue Signum fundu
use crate::paths::Input;
use crate::{parse, platform, Quotable};
use atty::Stream;
use clap::crate_version;
use clap::{parser::ValueSource, Arg, ArgAction, ArgMatches, Command};
+use fundu::DurationParser;
use same_file::Handle;
use std::collections::VecDeque;
use std::ffi::OsString;
@@ -665,16 +671,20 @@
settings.retry =
matches.get_flag(options::RETRY) || matches.get_flag(options::FOLLOW_RETRY);
- if let Some(s) = matches.get_one::<String>(options::SLEEP_INT) {
- settings.sleep_sec = match s.parse::<f32>() {
- Ok(s) => Duration::from_secs_f32(s),
- Err(_) => {
- return Err(UUsageError::new(
- 1,
- format!("invalid number of seconds: {}", s.quote()),
- ))
- }
- }
+ if let Some(source) = matches.get_one::<String>(options::SLEEP_INT) {
+ // Advantage of `fundu` over `Duration::(try_)from_secs_f64(source.parse().unwrap())`:
+ // * doesn't panic on errors like `Duration::from_secs_f64` would.
+ // * no precision loss, rounding errors or other floating point problems.
+ // * evaluates to `Duration::MAX` if the parsed number would have exceeded
+ // `DURATION::MAX` or `infinity` was given
+ // * not applied here but it supports customizable time units and provides better error
+ // messages
+ settings.sleep_sec =
+ DurationParser::without_time_units()
+ .parse(source)
+ .map_err(|_| {
+ UUsageError::new(1, format!("invalid number of seconds: '{source}'"))
+ })?;
}
settings.use_polling = matches.get_flag(options::USE_POLLING);
diff --git a/dev/uu_cat/fn.uu_app.html b/dev/uu_cat/fn.uu_app.html
index 9f753c466..5d78da48c 100644
--- a/dev/uu_cat/fn.uu_app.html
+++ b/dev/uu_cat/fn.uu_app.html
@@ -1 +1 @@
-uu_app in uu_cat - Rust
\ No newline at end of file
+uu_app in uu_cat - Rust
\ No newline at end of file
diff --git a/dev/uu_cat/fn.uumain.html b/dev/uu_cat/fn.uumain.html
index 496288bda..9cdf563cf 100644
--- a/dev/uu_cat/fn.uumain.html
+++ b/dev/uu_cat/fn.uumain.html
@@ -1 +1 @@
-uumain in uu_cat - Rust
\ No newline at end of file
+uumain in uu_cat - Rust
\ No newline at end of file
diff --git a/dev/uu_cat/index.html b/dev/uu_cat/index.html
index 73e8cf2d5..7c7760b3b 100644
--- a/dev/uu_cat/index.html
+++ b/dev/uu_cat/index.html
@@ -1 +1 @@
-uu_cat - Rust
\ No newline at end of file
+uu_cat - Rust
\ No newline at end of file
diff --git a/dev/uu_cp/fn.localize_to_target.html b/dev/uu_cp/fn.localize_to_target.html
index 57f73df4e..506d43fe4 100644
--- a/dev/uu_cp/fn.localize_to_target.html
+++ b/dev/uu_cp/fn.localize_to_target.html
@@ -1,4 +1,4 @@
-localize_to_target in uu_cp - Rust Function uu_cp::localize_to_target
source · pub fn localize_to_target(
root: &Path,
source: &Path,
target: &Path
) -> CopyResult<PathBuf>
Expand description
Remove the root prefix from source and prefix it with target
+
localize_to_target in uu_cp - Rust Function uu_cp::localize_to_target
source · pub fn localize_to_target(
root: &Path,
source: &Path,
target: &Path
) -> CopyResult<PathBuf>
Expand description
Remove the root prefix from source and prefix it with target
to create a file that is local to target
Examples
ⓘassert!(uu_cp::localize_to_target(
diff --git a/dev/uu_cp/fn.uu_app.html b/dev/uu_cp/fn.uu_app.html
index e6f01ed76..4351c498f 100644
--- a/dev/uu_cp/fn.uu_app.html
+++ b/dev/uu_cp/fn.uu_app.html
@@ -1 +1 @@
-uu_app in uu_cp - Rust
\ No newline at end of file
+uu_app in uu_cp - Rust
\ No newline at end of file
diff --git a/dev/uu_cp/fn.uumain.html b/dev/uu_cp/fn.uumain.html
index ec50594d2..cd7bdf8a7 100644
--- a/dev/uu_cp/fn.uumain.html
+++ b/dev/uu_cp/fn.uumain.html
@@ -1 +1 @@
-uumain in uu_cp - Rust
\ No newline at end of file
+uumain in uu_cp - Rust
\ No newline at end of file
diff --git a/dev/uu_cp/fn.verify_target_type.html b/dev/uu_cp/fn.verify_target_type.html
index 80de27a24..f1aa721fc 100644
--- a/dev/uu_cp/fn.verify_target_type.html
+++ b/dev/uu_cp/fn.verify_target_type.html
@@ -1,2 +1,2 @@
-verify_target_type in uu_cp - Rust Function uu_cp::verify_target_type
source · pub fn verify_target_type(
target: &Path,
target_type: &TargetType
) -> CopyResult<()>
Expand description
Generate an error message if target is not the correct target_type
+verify_target_type in uu_cp - Rust Function uu_cp::verify_target_type
source · pub fn verify_target_type(
target: &Path,
target_type: &TargetType
) -> CopyResult<()>
Expand description
Generate an error message if target is not the correct target_type
\ No newline at end of file
diff --git a/dev/uu_cp/index.html b/dev/uu_cp/index.html
index 3f906b572..e51598d1c 100644
--- a/dev/uu_cp/index.html
+++ b/dev/uu_cp/index.html
@@ -1,2 +1,2 @@
-uu_cp - Rust Structs
Re-usable, extensible copy optionsEnums
Specifies whether when overwrite filesSpecifies whether when overwrite filesPossible arguments for --reflink.Possible arguments for --sparse.Specifies the expected file type of copy targetFunctions
Remove the root prefix from source and prefix it with target
+uu_cp - Rust Structs
Re-usable, extensible copy optionsEnums
Specifies whether when overwrite filesSpecifies whether when overwrite filesPossible arguments for --reflink.Possible arguments for --sparse.Specifies the expected file type of copy targetFunctions
Remove the root prefix from source and prefix it with target
to create a file that is local to targetGenerate an error message if target is not the correct target_typeType Definitions
\ No newline at end of file
diff --git a/dev/uu_tail/args/enum.FilterMode.html b/dev/uu_tail/args/enum.FilterMode.html
index de6b3de63..150611863 100644
--- a/dev/uu_tail/args/enum.FilterMode.html
+++ b/dev/uu_tail/args/enum.FilterMode.html
@@ -1,10 +1,10 @@
-FilterMode in uu_tail::args - Rust Enum uu_tail::args::FilterMode
source · pub enum FilterMode {
+FilterMode in uu_tail::args - Rust Enum uu_tail::args::FilterMode
source · Variants§
Trait Implementations§
source§impl Debug for FilterMode
source§impl Default for FilterMode
source§impl PartialEq<FilterMode> for FilterMode
source§fn eq(&self, other: &FilterMode) -> bool
This method tests for self and other values to be equal, and is used
+Trait Implementations§
source§impl Debug for FilterMode
source§impl Default for FilterMode
source§impl PartialEq<FilterMode> for FilterMode
source§fn eq(&self, other: &FilterMode) -> bool
source§impl Eq for FilterMode
source§impl StructuralEq for FilterMode
source§impl StructuralPartialEq for FilterMode
Auto Trait Implementations§
§impl RefUnwindSafe for FilterMode
§impl Send for FilterMode
§impl Sync for FilterMode
§impl Unpin for FilterMode
§impl UnwindSafe for FilterMode
Blanket Implementations§
source§impl Eq for FilterMode
source§impl StructuralEq for FilterMode
source§impl StructuralPartialEq for FilterMode
Auto Trait Implementations§
§impl RefUnwindSafe for FilterMode
§impl Send for FilterMode
§impl Sync for FilterMode
§impl Unpin for FilterMode
§impl UnwindSafe for FilterMode
Blanket Implementations§
source§impl<T, U> Into<U> for Twhere
U: From<T>,
const: unstable · source§fn into(self) -> U
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
diff --git a/dev/uu_tail/args/enum.FollowMode.html b/dev/uu_tail/args/enum.FollowMode.html
index ab0e6785b..97585fb34 100644
--- a/dev/uu_tail/args/enum.FollowMode.html
+++ b/dev/uu_tail/args/enum.FollowMode.html
@@ -1,9 +1,9 @@
-FollowMode in uu_tail::args - Rust Enum uu_tail::args::FollowMode
source · pub enum FollowMode {
+FollowMode in uu_tail::args - Rust Enum uu_tail::args::FollowMode
source · pub enum FollowMode {
Descriptor,
Name,
-}
Variants§
Trait Implementations§
source§impl Clone for FollowMode
source§fn clone(&self) -> FollowMode
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for FollowMode
source§impl PartialEq<FollowMode> for FollowMode
source§fn eq(&self, other: &FollowMode) -> bool
This method tests for self and other values to be equal, and is used
+}Variants§
Trait Implementations§
source§impl Clone for FollowMode
source§fn clone(&self) -> FollowMode
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for FollowMode
source§impl PartialEq<FollowMode> for FollowMode
source§fn eq(&self, other: &FollowMode) -> bool
source§impl Copy for FollowMode
source§impl Eq for FollowMode
source§impl StructuralEq for FollowMode
source§impl StructuralPartialEq for FollowMode
Auto Trait Implementations§
§impl RefUnwindSafe for FollowMode
§impl Send for FollowMode
§impl Sync for FollowMode
§impl Unpin for FollowMode
§impl UnwindSafe for FollowMode
Blanket Implementations§
source§impl Copy for FollowMode
source§impl Eq for FollowMode
source§impl StructuralEq for FollowMode
source§impl StructuralPartialEq for FollowMode
Auto Trait Implementations§
§impl RefUnwindSafe for FollowMode
§impl Send for FollowMode
§impl Sync for FollowMode
§impl Unpin for FollowMode
§impl UnwindSafe for FollowMode
Blanket Implementations§
source§impl<T, U> Into<U> for Twhere
U: From<T>,
const: unstable · source§fn into(self) -> U
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
diff --git a/dev/uu_tail/args/enum.Signum.html b/dev/uu_tail/args/enum.Signum.html
index ab86cd7d0..f4d9c4dad 100644
--- a/dev/uu_tail/args/enum.Signum.html
+++ b/dev/uu_tail/args/enum.Signum.html
@@ -1,11 +1,11 @@
-Signum in uu_tail::args - Rust pub enum Signum {
+Signum in uu_tail::args - Rust Variants§
Trait Implementations§
source§impl PartialEq<Signum> for Signum
source§fn eq(&self, other: &Signum) -> bool
This method tests for self and other values to be equal, and is used
+}Variants§
Trait Implementations§
source§impl Copy for Signum
source§impl Eq for Signum
source§impl StructuralEq for Signum
source§impl StructuralPartialEq for Signum
Auto Trait Implementations§
§impl RefUnwindSafe for Signum
§impl Send for Signum
§impl Sync for Signum
§impl Unpin for Signum
§impl UnwindSafe for Signum
Blanket Implementations§
source§impl Copy for Signum
source§impl Eq for Signum
source§impl StructuralEq for Signum
source§impl StructuralPartialEq for Signum
Auto Trait Implementations§
§impl RefUnwindSafe for Signum
§impl Send for Signum
§impl Sync for Signum
§impl Unpin for Signum
§impl UnwindSafe for Signum
Blanket Implementations§
source§impl<T, U> Into<U> for Twhere
U: From<T>,
const: unstable · source§fn into(self) -> U
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
diff --git a/dev/uu_tail/args/enum.VerificationResult.html b/dev/uu_tail/args/enum.VerificationResult.html
index 6377814c3..2ffa7aec7 100644
--- a/dev/uu_tail/args/enum.VerificationResult.html
+++ b/dev/uu_tail/args/enum.VerificationResult.html
@@ -1,8 +1,8 @@
-VerificationResult in uu_tail::args - Rust Enum uu_tail::args::VerificationResult
source · pub enum VerificationResult {
+VerificationResult in uu_tail::args - Rust Enum uu_tail::args::VerificationResult
source · pub enum VerificationResult {
Ok,
CannotFollowStdinByName,
NoOutput,
-}
Variants§
Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for VerificationResult
§impl Send for VerificationResult
§impl Sync for VerificationResult
§impl Unpin for VerificationResult
§impl UnwindSafe for VerificationResult
Blanket Implementations§
source§impl<T> From<T> for T
const: unstable · source§fn from(t: T) -> T
Returns the argument unchanged.
+}Variants§
Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for VerificationResult
§impl Send for VerificationResult
§impl Sync for VerificationResult
§impl Unpin for VerificationResult
§impl UnwindSafe for VerificationResult
Blanket Implementations§
source§impl<T, U> Into<U> for Twhere
U: From<T>,
const: unstable · source§fn into(self) -> U
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
diff --git a/dev/uu_tail/args/fn.arg_iterate.html b/dev/uu_tail/args/fn.arg_iterate.html
index acc278bb9..53965767c 100644
--- a/dev/uu_tail/args/fn.arg_iterate.html
+++ b/dev/uu_tail/args/fn.arg_iterate.html
@@ -1 +1 @@
-arg_iterate in uu_tail::args - Rust
\ No newline at end of file
+arg_iterate in uu_tail::args - Rust
\ No newline at end of file
diff --git a/dev/uu_tail/args/fn.parse_args.html b/dev/uu_tail/args/fn.parse_args.html
index bf6a2b967..75a360443 100644
--- a/dev/uu_tail/args/fn.parse_args.html
+++ b/dev/uu_tail/args/fn.parse_args.html
@@ -1 +1 @@
-parse_args in uu_tail::args - Rust Function uu_tail::args::parse_args
source · pub fn parse_args(args: impl Args) -> UResult<Settings>
\ No newline at end of file
+parse_args in uu_tail::args - Rust Function uu_tail::args::parse_args
source · pub fn parse_args(args: impl Args) -> UResult<Settings>
\ No newline at end of file
diff --git a/dev/uu_tail/args/fn.uu_app.html b/dev/uu_tail/args/fn.uu_app.html
index a6a677a7c..a1c421671 100644
--- a/dev/uu_tail/args/fn.uu_app.html
+++ b/dev/uu_tail/args/fn.uu_app.html
@@ -1 +1 @@
-uu_app in uu_tail::args - Rust
\ No newline at end of file
+uu_app in uu_tail::args - Rust
\ No newline at end of file
diff --git a/dev/uu_tail/args/index.html b/dev/uu_tail/args/index.html
index 9157e5338..245633ea0 100644
--- a/dev/uu_tail/args/index.html
+++ b/dev/uu_tail/args/index.html
@@ -1 +1 @@
-uu_tail::args - Rust
\ No newline at end of file
+uu_tail::args - Rust
\ No newline at end of file
diff --git a/dev/uu_tail/args/options/index.html b/dev/uu_tail/args/options/index.html
index 841ac4a23..82e9a59c1 100644
--- a/dev/uu_tail/args/options/index.html
+++ b/dev/uu_tail/args/options/index.html
@@ -1 +1 @@
-uu_tail::args::options - Rust
\ No newline at end of file
+uu_tail::args::options - Rust
\ No newline at end of file
diff --git a/dev/uu_tail/args/options/static.ARG_FILES.html b/dev/uu_tail/args/options/static.ARG_FILES.html
index 48dda7049..96f62a182 100644
--- a/dev/uu_tail/args/options/static.ARG_FILES.html
+++ b/dev/uu_tail/args/options/static.ARG_FILES.html
@@ -1 +1 @@
-ARG_FILES in uu_tail::args::options - Rust
\ No newline at end of file
+ARG_FILES in uu_tail::args::options - Rust
\ No newline at end of file
diff --git a/dev/uu_tail/args/options/static.BYTES.html b/dev/uu_tail/args/options/static.BYTES.html
index 4e9fa83fa..167403144 100644
--- a/dev/uu_tail/args/options/static.BYTES.html
+++ b/dev/uu_tail/args/options/static.BYTES.html
@@ -1 +1 @@
-BYTES in uu_tail::args::options - Rust
\ No newline at end of file
+BYTES in uu_tail::args::options - Rust
\ No newline at end of file
diff --git a/dev/uu_tail/args/options/static.DISABLE_INOTIFY_TERM.html b/dev/uu_tail/args/options/static.DISABLE_INOTIFY_TERM.html
index 649a5b88d..59ad4b4f1 100644
--- a/dev/uu_tail/args/options/static.DISABLE_INOTIFY_TERM.html
+++ b/dev/uu_tail/args/options/static.DISABLE_INOTIFY_TERM.html
@@ -1 +1 @@
-DISABLE_INOTIFY_TERM in uu_tail::args::options - Rust
\ No newline at end of file
+DISABLE_INOTIFY_TERM in uu_tail::args::options - Rust
\ No newline at end of file
diff --git a/dev/uu_tail/args/options/static.FOLLOW.html b/dev/uu_tail/args/options/static.FOLLOW.html
index 914d76419..cd68ae07f 100644
--- a/dev/uu_tail/args/options/static.FOLLOW.html
+++ b/dev/uu_tail/args/options/static.FOLLOW.html
@@ -1 +1 @@
-FOLLOW in uu_tail::args::options - Rust
\ No newline at end of file
+FOLLOW in uu_tail::args::options - Rust
\ No newline at end of file
diff --git a/dev/uu_tail/args/options/static.FOLLOW_RETRY.html b/dev/uu_tail/args/options/static.FOLLOW_RETRY.html
index 8db8bab90..c46b08dfe 100644
--- a/dev/uu_tail/args/options/static.FOLLOW_RETRY.html
+++ b/dev/uu_tail/args/options/static.FOLLOW_RETRY.html
@@ -1 +1 @@
-FOLLOW_RETRY in uu_tail::args::options - Rust
\ No newline at end of file
+FOLLOW_RETRY in uu_tail::args::options - Rust
\ No newline at end of file
diff --git a/dev/uu_tail/args/options/static.LINES.html b/dev/uu_tail/args/options/static.LINES.html
index 0892f2ada..aac7712b3 100644
--- a/dev/uu_tail/args/options/static.LINES.html
+++ b/dev/uu_tail/args/options/static.LINES.html
@@ -1 +1 @@
-LINES in uu_tail::args::options - Rust
\ No newline at end of file
+LINES in uu_tail::args::options - Rust
\ No newline at end of file
diff --git a/dev/uu_tail/args/options/static.MAX_UNCHANGED_STATS.html b/dev/uu_tail/args/options/static.MAX_UNCHANGED_STATS.html
index 473aecb10..c95312567 100644
--- a/dev/uu_tail/args/options/static.MAX_UNCHANGED_STATS.html
+++ b/dev/uu_tail/args/options/static.MAX_UNCHANGED_STATS.html
@@ -1 +1 @@
-MAX_UNCHANGED_STATS in uu_tail::args::options - Rust
\ No newline at end of file
+MAX_UNCHANGED_STATS in uu_tail::args::options - Rust
\ No newline at end of file
diff --git a/dev/uu_tail/args/options/static.PID.html b/dev/uu_tail/args/options/static.PID.html
index 0e2315b7d..50b6adb67 100644
--- a/dev/uu_tail/args/options/static.PID.html
+++ b/dev/uu_tail/args/options/static.PID.html
@@ -1 +1 @@
-PID in uu_tail::args::options - Rust
\ No newline at end of file
+PID in uu_tail::args::options - Rust
\ No newline at end of file
diff --git a/dev/uu_tail/args/options/static.PRESUME_INPUT_PIPE.html b/dev/uu_tail/args/options/static.PRESUME_INPUT_PIPE.html
index d3220bbf2..d207d2955 100644
--- a/dev/uu_tail/args/options/static.PRESUME_INPUT_PIPE.html
+++ b/dev/uu_tail/args/options/static.PRESUME_INPUT_PIPE.html
@@ -1 +1 @@
-PRESUME_INPUT_PIPE in uu_tail::args::options - Rust
\ No newline at end of file
+PRESUME_INPUT_PIPE in uu_tail::args::options - Rust
\ No newline at end of file
diff --git a/dev/uu_tail/args/options/static.RETRY.html b/dev/uu_tail/args/options/static.RETRY.html
index 6a1416b26..480dc559c 100644
--- a/dev/uu_tail/args/options/static.RETRY.html
+++ b/dev/uu_tail/args/options/static.RETRY.html
@@ -1 +1 @@
-RETRY in uu_tail::args::options - Rust
\ No newline at end of file
+RETRY in uu_tail::args::options - Rust
\ No newline at end of file
diff --git a/dev/uu_tail/args/options/static.SLEEP_INT.html b/dev/uu_tail/args/options/static.SLEEP_INT.html
index 2186edf73..4b34e048d 100644
--- a/dev/uu_tail/args/options/static.SLEEP_INT.html
+++ b/dev/uu_tail/args/options/static.SLEEP_INT.html
@@ -1 +1 @@
-SLEEP_INT in uu_tail::args::options - Rust
\ No newline at end of file
+SLEEP_INT in uu_tail::args::options - Rust
\ No newline at end of file
diff --git a/dev/uu_tail/args/options/static.USE_POLLING.html b/dev/uu_tail/args/options/static.USE_POLLING.html
index 0315fa1f2..c2b998c28 100644
--- a/dev/uu_tail/args/options/static.USE_POLLING.html
+++ b/dev/uu_tail/args/options/static.USE_POLLING.html
@@ -1 +1 @@
-USE_POLLING in uu_tail::args::options - Rust
\ No newline at end of file
+USE_POLLING in uu_tail::args::options - Rust
\ No newline at end of file
diff --git a/dev/uu_tail/args/options/static.ZERO_TERM.html b/dev/uu_tail/args/options/static.ZERO_TERM.html
index efd583837..20d6b77f1 100644
--- a/dev/uu_tail/args/options/static.ZERO_TERM.html
+++ b/dev/uu_tail/args/options/static.ZERO_TERM.html
@@ -1 +1 @@
-ZERO_TERM in uu_tail::args::options - Rust
\ No newline at end of file
+ZERO_TERM in uu_tail::args::options - Rust
\ No newline at end of file
diff --git a/dev/uu_tail/args/options/verbosity/index.html b/dev/uu_tail/args/options/verbosity/index.html
index 41df7f4aa..c1576a9f5 100644
--- a/dev/uu_tail/args/options/verbosity/index.html
+++ b/dev/uu_tail/args/options/verbosity/index.html
@@ -1 +1 @@
-uu_tail::args::options::verbosity - Rust
\ No newline at end of file
+uu_tail::args::options::verbosity - Rust
\ No newline at end of file
diff --git a/dev/uu_tail/args/options/verbosity/static.QUIET.html b/dev/uu_tail/args/options/verbosity/static.QUIET.html
index 0b0ce1ee6..7e04fa114 100644
--- a/dev/uu_tail/args/options/verbosity/static.QUIET.html
+++ b/dev/uu_tail/args/options/verbosity/static.QUIET.html
@@ -1 +1 @@
-QUIET in uu_tail::args::options::verbosity - Rust
\ No newline at end of file
+QUIET in uu_tail::args::options::verbosity - Rust
\ No newline at end of file
diff --git a/dev/uu_tail/args/options/verbosity/static.VERBOSE.html b/dev/uu_tail/args/options/verbosity/static.VERBOSE.html
index 75fba19a5..f4d1c1061 100644
--- a/dev/uu_tail/args/options/verbosity/static.VERBOSE.html
+++ b/dev/uu_tail/args/options/verbosity/static.VERBOSE.html
@@ -1 +1 @@
-VERBOSE in uu_tail::args::options::verbosity - Rust
\ No newline at end of file
+VERBOSE in uu_tail::args::options::verbosity - Rust
\ No newline at end of file
diff --git a/dev/uu_tail/args/struct.Settings.html b/dev/uu_tail/args/struct.Settings.html
index f07380033..d8036eeca 100644
--- a/dev/uu_tail/args/struct.Settings.html
+++ b/dev/uu_tail/args/struct.Settings.html
@@ -1,4 +1,4 @@
-Settings in uu_tail::args - Rust pub struct Settings {
+Settings in uu_tail::args - Rust pub struct Settings {
pub follow: Option<FollowMode>,
pub max_unchanged_stats: u32,
pub mode: FilterMode,
@@ -9,13 +9,13 @@
pub verbose: bool,
pub presume_input_pipe: bool,
pub inputs: VecDeque<Input>,
-}
Fields§
§follow: Option<FollowMode>§max_unchanged_stats: u32§mode: FilterMode§pid: pid_t§retry: bool§sleep_sec: Duration§use_polling: bool§verbose: bool§presume_input_pipe: bool§inputs: VecDeque<Input>Implementations§
source§impl Settings
sourcepub fn from(matches: &ArgMatches) -> UResult<Self>
sourcepub fn has_only_stdin(&self) -> bool
sourcepub fn has_stdin(&self) -> bool
sourcepub fn num_inputs(&self) -> usize
sourcepub fn check_warnings(&self)
Check Settings for problematic configurations of tail originating from user provided
+}
Fields§
§follow: Option<FollowMode>§max_unchanged_stats: u32§mode: FilterMode§pid: pid_t§retry: bool§sleep_sec: Duration§use_polling: bool§verbose: bool§presume_input_pipe: bool§inputs: VecDeque<Input>Implementations§
source§impl Settings
sourcepub fn from(matches: &ArgMatches) -> UResult<Self>
sourcepub fn has_only_stdin(&self) -> bool
sourcepub fn has_stdin(&self) -> bool
sourcepub fn num_inputs(&self) -> usize
sourcepub fn check_warnings(&self)
Check Settings for problematic configurations of tail originating from user provided
command line arguments and print appropriate warnings.
-sourcepub fn verify(&self) -> VerificationResult
Verify Settings and try to find unsolvable misconfigurations of tail originating from
+
sourcepub fn verify(&self) -> VerificationResult
Verify Settings and try to find unsolvable misconfigurations of tail originating from
user provided command line arguments. In contrast to Settings::check_warnings these
misconfigurations usually lead to the immediate exit or abortion of the running tail
process.
-Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for Settings
§impl Send for Settings
§impl Sync for Settings
§impl Unpin for Settings
§impl UnwindSafe for Settings
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for Settings
§impl Send for Settings
§impl Sync for Settings
§impl Unpin for Settings
§impl UnwindSafe for Settings
Blanket Implementations§