From 28ba5f5fbbaf8d69ec6c722db4d731a432dec63a Mon Sep 17 00:00:00 2001 From: sylvestre Date: Tue, 4 Jul 2023 03:02:49 +0000 Subject: [PATCH] deploy: f0e8d44e6e64ee3354f95864c0a25b74cf1c1151 --- dev/search-index.js | 2 +- dev/src/uu_cp/cp.rs.html | 2 + dev/src/uu_tail/args.rs.html | 34 +++++------- dev/src/uu_tail/follow/watch.rs.html | 4 +- dev/src/uu_tail/paths.rs.html | 54 ++++++++++++++----- dev/src/uu_touch/touch.rs.html | 18 +++---- dev/uu_cp/fn.localize_to_target.html | 2 +- dev/uu_cp/fn.uu_app.html | 2 +- dev/uu_cp/fn.uumain.html | 2 +- dev/uu_cp/fn.verify_target_type.html | 2 +- dev/uu_cp/index.html | 2 +- dev/uu_tail/args/enum.FilterMode.html | 6 +-- dev/uu_tail/args/enum.FollowMode.html | 6 +-- dev/uu_tail/args/enum.Signum.html | 6 +-- dev/uu_tail/args/enum.VerificationResult.html | 4 +- dev/uu_tail/args/fn.parse_args.html | 2 +- dev/uu_tail/args/fn.parse_obsolete.html | 2 +- dev/uu_tail/args/fn.uu_app.html | 2 +- dev/uu_tail/args/index.html | 2 +- .../args/options/constant.ARG_FILES.html | 2 +- dev/uu_tail/args/options/constant.BYTES.html | 2 +- .../constant.DISABLE_INOTIFY_TERM.html | 2 +- dev/uu_tail/args/options/constant.FOLLOW.html | 2 +- .../args/options/constant.FOLLOW_RETRY.html | 2 +- dev/uu_tail/args/options/constant.LINES.html | 2 +- .../options/constant.MAX_UNCHANGED_STATS.html | 2 +- dev/uu_tail/args/options/constant.PID.html | 2 +- .../options/constant.PRESUME_INPUT_PIPE.html | 2 +- dev/uu_tail/args/options/constant.RETRY.html | 2 +- .../args/options/constant.SLEEP_INT.html | 2 +- .../args/options/constant.USE_POLLING.html | 2 +- .../args/options/constant.ZERO_TERM.html | 2 +- dev/uu_tail/args/options/index.html | 2 +- .../options/verbosity/constant.QUIET.html | 2 +- .../options/verbosity/constant.VERBOSE.html | 2 +- dev/uu_tail/args/options/verbosity/index.html | 2 +- dev/uu_tail/args/struct.Settings.html | 11 ++-- dev/uu_touch/fn.uu_app.html | 2 +- 38 files changed, 109 insertions(+), 92 deletions(-) diff --git a/dev/search-index.js b/dev/search-index.js index 50f4d8a68..2823f8fea 100644 --- a/dev/search-index.js +++ b/dev/search-index.js @@ -181,7 +181,7 @@ var searchIndex = JSON.parse('{\ "uu_sum":{"doc":"","t":"FF","n":["uu_app","uumain"],"q":[[0,"uu_sum"]],"d":["",""],"i":[0,0],"f":[[[],1],[2,3]],"c":[],"p":[[3,"Command"],[8,"Args"],[15,"i32"]]},\ "uu_sync":{"doc":"","t":"AFFHH","n":["options","uu_app","uumain","DATA","FILE_SYSTEM"],"q":[[0,"uu_sync"],[3,"uu_sync::options"]],"d":["","","","",""],"i":[0,0,0,0,0],"f":[0,[[],1],[2,3],0,0],"c":[],"p":[[3,"Command"],[8,"Args"],[15,"i32"]]},\ "uu_tac":{"doc":"","t":"FF","n":["uu_app","uumain"],"q":[[0,"uu_tac"]],"d":["",""],"i":[0,0],"f":[[[],1],[2,3]],"c":[],"p":[[3,"Command"],[8,"Args"],[15,"i32"]]},\ -"uu_tail":{"doc":"","t":"AAACFNNNEENNNNNNNNDEELLLLLLLLLLLLLLLLLLLLLLLLLMLLLLLLLLLMLLLLLMMLAFFMMMMLLLLLLLLLLLLLLLLLMFMLRRRRRRRRRRRRRARRRRDDDDDLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLRRRRRRRRRRRR","n":["args","chunks","text","uu_app","uumain","Bytes","CannotFollowStdinByName","Descriptor","FilterMode","FollowMode","Lines","MinusZero","Name","Negative","NoOutput","Ok","PlusZero","Positive","Settings","Signum","VerificationResult","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","check_warnings","clone","clone","clone_into","clone_into","default","default","eq","eq","eq","fmt","fmt","fmt","fmt","fmt","follow","from","from","from","from","from","from","from_obsolete_args","has_only_stdin","has_stdin","inputs","into","into","into","into","into","max_unchanged_stats","mode","num_inputs","options","parse_args","parse_obsolete","pid","presume_input_pipe","retry","sleep_sec","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","use_polling","uu_app","verbose","verify","ARG_FILES","BYTES","DISABLE_INOTIFY_TERM","FOLLOW","FOLLOW_RETRY","LINES","MAX_UNCHANGED_STATS","PID","PRESUME_INPUT_PIPE","RETRY","SLEEP_INT","USE_POLLING","ZERO_TERM","verbosity","QUIET","VERBOSE","BLOCK_SIZE","BUFFER_SIZE","BytesChunk","BytesChunkBuffer","LinesChunk","LinesChunkBuffer","ReverseChunks","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","eq","fill","fill","fill","fill","fmt","fmt","from","from","from","from","from","get_buffer","get_buffer","get_buffer_with","get_buffer_with","get_lines","has_data","has_data","has_data","into","into","into","into","into","into_iter","new","new","new","new","new","next","print","print","print_bytes","print_lines","to_owned","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","BACKEND","BAD_FD","BECOME_INACCESSIBLE","DASH","DEV_PTMX","DEV_STDIN","DEV_TTY","FD0","IS_A_DIRECTORY","NO_FILES_REMAINING","NO_SUCH_FILE","STDIN_HEADER"],"q":[[0,"uu_tail"],[5,"uu_tail::args"],[93,"uu_tail::args::options"],[107,"uu_tail::args::options::verbosity"],[109,"uu_tail::chunks"],[180,"uu_tail::text"]],"d":["","Iterating over a file by chunks, either starting at the …","","","","","","","","","Mode for lines delimited by delimiter as u8","","","","","","","","","","","","","","","","","","","","","Check Settings for problematic configurations of tail …","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Returns the argument unchanged.","","","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Verify Settings and try to find unsolvable …","","","","","","","","","","","","","","","","","When reading files in reverse in bounded_tail, this is the …","The size of the backing buffer of a LinesChunk or …","A BytesChunk storing a fixed size number of bytes in a …","An abstraction layer on top of BytesChunk mainly to …","Works similar to a BytesChunk but also stores the number …","An abstraction layer on top of LinesChunk mainly to …","An iterator over a file in non-overlapping chunks from the …","","","","","","","","","","","","","","Fills this buffer with chunks and consumes the reader …","Fills this buffer with chunks and consumes the reader …","Fills self.buffer with maximal BUFFER_SIZE number of …","Fills self.buffer with maximal BUFFER_SIZE number of …","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Receive the internal buffer safely, so it returns a slice …","Returns this buffer safely. See BytesChunk::get_buffer","Like BytesChunk::get_buffer, but returning a slice from …","Returns this buffer safely with an offset applied. See …","Return the number of lines the buffer contains. self.lines …","","","Returns true if this buffer has stored any bytes.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","Creates a new BytesChunkBuffer.","Create a new LinesChunkBuffer","","","","","","Print the bytes contained in this buffer beginning from …","Print the bytes contained in this buffer calculated with …","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"i":[0,0,0,0,0,6,10,5,0,0,6,4,5,4,10,10,4,4,0,0,0,4,6,5,10,3,4,6,5,10,3,3,4,5,4,5,6,3,4,6,5,4,6,5,10,3,3,4,6,5,10,3,3,3,3,3,3,4,6,5,10,3,3,3,3,0,0,0,3,3,3,3,4,5,4,6,5,10,3,4,6,5,10,3,4,6,5,10,3,3,0,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,25,20,22,19,23,25,20,22,19,23,19,19,19,20,22,19,23,19,23,25,20,22,19,23,19,23,19,23,23,20,19,23,25,20,22,19,23,25,25,20,22,19,23,25,20,22,23,23,19,25,20,22,19,23,25,20,22,19,23,25,20,22,19,23,0,0,0,0,0,0,0,0,0,0,0,0],"f":[0,0,0,0,[1,2],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[3],[4,4],[5,5],[[]],[[]],[[],6],[[],3],[[4,4],7],[[6,6],7],[[5,5],7],[[4,8],9],[[6,8],9],[[5,8],9],[[10,8],9],[[3,8],9],0,[[]],[[]],[[]],[[]],[11,[[12,[3]]]],[[]],0,[3,7],[3,7],0,[[]],[[]],[[]],[[]],[[]],0,0,[3,15],0,[1,[[12,[3]]]],[[13,[14,[13]]],[[12,[[14,[3]]]]]],0,0,0,0,[[]],[[]],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],17],[[],17],[[],17],[[],17],[[],17],0,[[],18],0,[3,10],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[19,19],[[]],[[19,19],7],[[20,21],12],[[22,21],12],[[19,21],[[12,[[14,[15]]]]]],[[23,21],[[12,[[14,[15]]]]]],[[19,8],9],[[23,8],9],[[]],[[]],[[]],[[]],[[]],[19],[23],[[19,15]],[[23,15]],[23,15],[20,7],[19,7],[23,7],[[]],[[]],[[]],[[]],[[]],[[]],[24,25],[26,20],[[27,26],22],[[],19],[27,23],[25,14],[[20,28],12],[[22,28],12],[[23,28,15],12],[[23,28,15],12],[[]],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],17],[[],17],[[],17],[[],17],[[],17],0,0,0,0,0,0,0,0,0,0,0,0],"c":[],"p":[[8,"Args"],[15,"i32"],[3,"Settings"],[4,"Signum"],[4,"FollowMode"],[4,"FilterMode"],[15,"bool"],[3,"Formatter"],[6,"Result"],[4,"VerificationResult"],[3,"ArgMatches"],[6,"UResult"],[3,"OsString"],[4,"Option"],[15,"usize"],[4,"Result"],[3,"TypeId"],[3,"Command"],[3,"BytesChunk"],[3,"BytesChunkBuffer"],[8,"BufRead"],[3,"LinesChunkBuffer"],[3,"LinesChunk"],[3,"File"],[3,"ReverseChunks"],[15,"u64"],[15,"u8"],[8,"Write"]]},\ +"uu_tail":{"doc":"","t":"AAACFNNNEENNNNNNNNDEELLLLLLLLLLLLLLLLLLLLLLLLLMLLLLLLLLLMLLLLLMMLAFFMMMMLLLLLLLLLLLLLLLLLMFMLRRRRRRRRRRRRRARRRRDDDDDLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLRRRRRRRRRRRR","n":["args","chunks","text","uu_app","uumain","Bytes","CannotFollowStdinByName","Descriptor","FilterMode","FollowMode","Lines","MinusZero","Name","Negative","NoOutput","Ok","PlusZero","Positive","Settings","Signum","VerificationResult","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","check_warnings","clone","clone","clone_into","clone_into","default","default","eq","eq","eq","fmt","fmt","fmt","fmt","fmt","follow","from","from","from","from","from","from","from_obsolete_args","has_only_stdin","has_stdin","inputs","into","into","into","into","into","max_unchanged_stats","mode","num_inputs","options","parse_args","parse_obsolete","pid","presume_input_pipe","retry","sleep_sec","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","use_polling","uu_app","verbose","verify","ARG_FILES","BYTES","DISABLE_INOTIFY_TERM","FOLLOW","FOLLOW_RETRY","LINES","MAX_UNCHANGED_STATS","PID","PRESUME_INPUT_PIPE","RETRY","SLEEP_INT","USE_POLLING","ZERO_TERM","verbosity","QUIET","VERBOSE","BLOCK_SIZE","BUFFER_SIZE","BytesChunk","BytesChunkBuffer","LinesChunk","LinesChunkBuffer","ReverseChunks","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","eq","fill","fill","fill","fill","fmt","fmt","from","from","from","from","from","get_buffer","get_buffer","get_buffer_with","get_buffer_with","get_lines","has_data","has_data","has_data","into","into","into","into","into","into_iter","new","new","new","new","new","next","print","print","print_bytes","print_lines","to_owned","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","BACKEND","BAD_FD","BECOME_INACCESSIBLE","DASH","DEV_PTMX","DEV_STDIN","DEV_TTY","FD0","IS_A_DIRECTORY","NO_FILES_REMAINING","NO_SUCH_FILE","STDIN_HEADER"],"q":[[0,"uu_tail"],[5,"uu_tail::args"],[93,"uu_tail::args::options"],[107,"uu_tail::args::options::verbosity"],[109,"uu_tail::chunks"],[180,"uu_tail::text"]],"d":["","Iterating over a file by chunks, either starting at the …","","","","","","","","","Mode for lines delimited by delimiter as u8","","","","","","","","","","","","","","","","","","","","","Check Settings for problematic configurations of tail …","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Returns the argument unchanged.","","","","FILE(s) positional arguments","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Verify Settings and try to find unsolvable …","","","","","","","","","","","","","","","","","When reading files in reverse in bounded_tail, this is the …","The size of the backing buffer of a LinesChunk or …","A BytesChunk storing a fixed size number of bytes in a …","An abstraction layer on top of BytesChunk mainly to …","Works similar to a BytesChunk but also stores the number …","An abstraction layer on top of LinesChunk mainly to …","An iterator over a file in non-overlapping chunks from the …","","","","","","","","","","","","","","Fills this buffer with chunks and consumes the reader …","Fills this buffer with chunks and consumes the reader …","Fills self.buffer with maximal BUFFER_SIZE number of …","Fills self.buffer with maximal BUFFER_SIZE number of …","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Receive the internal buffer safely, so it returns a slice …","Returns this buffer safely. See BytesChunk::get_buffer","Like BytesChunk::get_buffer, but returning a slice from …","Returns this buffer safely with an offset applied. See …","Return the number of lines the buffer contains. self.lines …","","","Returns true if this buffer has stored any bytes.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","Creates a new BytesChunkBuffer.","Create a new LinesChunkBuffer","","","","","","Print the bytes contained in this buffer beginning from …","Print the bytes contained in this buffer calculated with …","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"i":[0,0,0,0,0,6,10,5,0,0,6,4,5,4,10,10,4,4,0,0,0,4,6,5,10,3,4,6,5,10,3,3,4,5,4,5,6,3,4,6,5,4,6,5,10,3,3,4,6,5,10,3,3,3,3,3,3,4,6,5,10,3,3,3,3,0,0,0,3,3,3,3,4,5,4,6,5,10,3,4,6,5,10,3,4,6,5,10,3,3,0,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,25,20,22,19,23,25,20,22,19,23,19,19,19,20,22,19,23,19,23,25,20,22,19,23,19,23,19,23,23,20,19,23,25,20,22,19,23,25,25,20,22,19,23,25,20,22,23,23,19,25,20,22,19,23,25,20,22,19,23,25,20,22,19,23,0,0,0,0,0,0,0,0,0,0,0,0],"f":[0,0,0,0,[1,2],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[3],[4,4],[5,5],[[]],[[]],[[],6],[[],3],[[4,4],7],[[6,6],7],[[5,5],7],[[4,8],9],[[6,8],9],[[5,8],9],[[10,8],9],[[3,8],9],0,[[]],[[]],[[]],[[]],[11,[[12,[3]]]],[[]],0,[3,7],[3,7],0,[[]],[[]],[[]],[[]],[[]],0,0,[3,15],0,[1,[[12,[3]]]],[[13,[14,[13]]],[[12,[[14,[3]]]]]],0,0,0,0,[[]],[[]],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],17],[[],17],[[],17],[[],17],[[],17],0,[[],18],0,[3,10],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[19,19],[[]],[[19,19],7],[[20,21],12],[[22,21],12],[[19,21],[[12,[[14,[15]]]]]],[[23,21],[[12,[[14,[15]]]]]],[[19,8],9],[[23,8],9],[[]],[[]],[[]],[[]],[[]],[19],[23],[[19,15]],[[23,15]],[23,15],[20,7],[19,7],[23,7],[[]],[[]],[[]],[[]],[[]],[[]],[24,25],[26,20],[[27,26],22],[[],19],[27,23],[25,14],[[20,28],12],[[22,28],12],[[23,28,15],12],[[23,28,15],12],[[]],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],17],[[],17],[[],17],[[],17],[[],17],0,0,0,0,0,0,0,0,0,0,0,0],"c":[],"p":[[8,"Args"],[15,"i32"],[3,"Settings"],[4,"Signum"],[4,"FollowMode"],[4,"FilterMode"],[15,"bool"],[3,"Formatter"],[6,"Result"],[4,"VerificationResult"],[3,"ArgMatches"],[6,"UResult"],[3,"OsString"],[4,"Option"],[15,"usize"],[4,"Result"],[3,"TypeId"],[3,"Command"],[3,"BytesChunk"],[3,"BytesChunkBuffer"],[8,"BufRead"],[3,"LinesChunkBuffer"],[3,"LinesChunk"],[3,"File"],[3,"ReverseChunks"],[15,"u64"],[15,"u8"],[8,"Write"]]},\ "uu_tee":{"doc":"","t":"FF","n":["uu_app","uumain"],"q":[[0,"uu_tee"]],"d":["",""],"i":[0,0],"f":[[[],1],[2,3]],"c":[],"p":[[3,"Command"],[8,"Args"],[15,"i32"]]},\ "uu_test":{"doc":"","t":"FF","n":["uu_app","uumain"],"q":[[0,"uu_test"]],"d":["",""],"i":[0,0],"f":[[[],1],[2,3]],"c":[],"p":[[3,"Command"],[8,"Args"],[15,"i32"]]},\ "uu_timeout":{"doc":"","t":"AFFHHHHHHH","n":["options","uu_app","uumain","COMMAND","DURATION","FOREGROUND","KILL_AFTER","PRESERVE_STATUS","SIGNAL","VERBOSE"],"q":[[0,"uu_timeout"],[3,"uu_timeout::options"]],"d":["","","","","","","","","",""],"i":[0,0,0,0,0,0,0,0,0,0],"f":[0,[[],1],[2,3],0,0,0,0,0,0,0],"c":[],"p":[[3,"Command"],[8,"Args"],[15,"i32"]]},\ diff --git a/dev/src/uu_cp/cp.rs.html b/dev/src/uu_cp/cp.rs.html index 8792424f6..770820849 100644 --- a/dev/src/uu_cp/cp.rs.html +++ b/dev/src/uu_cp/cp.rs.html @@ -1994,6 +1994,7 @@ 1994 1995 1996 +1997
#![allow(clippy::missing_safety_doc)]
 #![allow(clippy::extra_unused_lifetimes)]
 
@@ -2379,6 +2380,7 @@
             backup_control::BACKUP_CONTROL_LONG_HELP
         ))
         .infer_long_args(true)
+        .args_override_self(true)
         .arg(
             Arg::new(options::TARGET_DIRECTORY)
                 .short('t')
diff --git a/dev/src/uu_tail/args.rs.html b/dev/src/uu_tail/args.rs.html
index 4d926201f..3dd3dea33 100644
--- a/dev/src/uu_tail/args.rs.html
+++ b/dev/src/uu_tail/args.rs.html
@@ -678,11 +678,6 @@
 678
 679
 680
-681
-682
-683
-684
-685
 
//  * This file is part of the uutils coreutils package.
 //  *
 //  * For the full copyright and license information, please view the LICENSE
@@ -692,12 +687,11 @@
 
 use crate::paths::Input;
 use crate::{parse, platform, Quotable};
-use clap::crate_version;
+use clap::{crate_version, value_parser};
 use clap::{Arg, ArgAction, ArgMatches, Command};
 use fundu::{DurationParser, SaturatingInto};
 use is_terminal::IsTerminal;
 use same_file::Handle;
-use std::collections::VecDeque;
 use std::ffi::OsString;
 use std::time::Duration;
 use uucore::error::{UResult, USimpleError, UUsageError};
@@ -826,7 +820,8 @@
     pub use_polling: bool,
     pub verbose: bool,
     pub presume_input_pipe: bool,
-    pub inputs: VecDeque<Input>,
+    /// `FILE(s)` positional arguments
+    pub inputs: Vec<Input>,
 }
 
 impl Default for Settings {
@@ -858,11 +853,11 @@
         }
         settings.mode = FilterMode::from_obsolete_args(args);
         let input = if let Some(name) = name {
-            Input::from(&name)
+            Input::from(name)
         } else {
             Input::default()
         };
-        settings.inputs.push_back(input);
+        settings.inputs.push(input);
         settings
     }
 
@@ -970,19 +965,13 @@
             }
         }
 
-        let mut inputs: VecDeque<Input> = matches
-            .get_many::<String>(options::ARG_FILES)
-            .map(|v| v.map(|string| Input::from(&string)).collect())
-            .unwrap_or_default();
+        settings.inputs = matches
+            .get_many::<OsString>(options::ARG_FILES)
+            .map(|v| v.map(Input::from).collect())
+            .unwrap_or_else(|| vec![Input::default()]);
 
-        // apply default and add '-' to inputs if none is present
-        if inputs.is_empty() {
-            inputs.push_front(Input::default());
-        }
-
-        settings.verbose = inputs.len() > 1 && !matches.get_flag(options::verbosity::QUIET);
-
-        settings.inputs = inputs;
+        settings.verbose =
+            settings.inputs.len() > 1 && !matches.get_flag(options::verbosity::QUIET);
 
         Ok(settings)
     }
@@ -1278,6 +1267,7 @@
             Arg::new(options::ARG_FILES)
                 .action(ArgAction::Append)
                 .num_args(1..)
+                .value_parser(value_parser!(OsString))
                 .value_hint(clap::ValueHint::FilePath),
         )
 }
diff --git a/dev/src/uu_tail/follow/watch.rs.html b/dev/src/uu_tail/follow/watch.rs.html
index 9c8a6de17..1ec61008a 100644
--- a/dev/src/uu_tail/follow/watch.rs.html
+++ b/dev/src/uu_tail/follow/watch.rs.html
@@ -602,7 +602,6 @@
 602
 603
 604
-605
 
//  * This file is part of the uutils coreutils package.
 //  *
 //  * For the full copyright and license information, please view the LICENSE
@@ -615,7 +614,6 @@
 use crate::paths::{Input, InputKind, MetadataExtTail, PathExtTail};
 use crate::{platform, text};
 use notify::{RecommendedWatcher, RecursiveMode, Watcher, WatcherKind};
-use std::collections::VecDeque;
 use std::io::BufRead;
 use std::path::{Path, PathBuf};
 use std::sync::mpsc::{self, channel, Receiver};
@@ -875,7 +873,7 @@
         self.follow_name() && self.retry
     }
 
-    fn init_files(&mut self, inputs: &VecDeque<Input>) -> UResult<()> {
+    fn init_files(&mut self, inputs: &Vec<Input>) -> UResult<()> {
         if let Some(watcher_rx) = &mut self.watcher_rx {
             for input in inputs {
                 match input.kind() {
diff --git a/dev/src/uu_tail/paths.rs.html b/dev/src/uu_tail/paths.rs.html
index e741c606e..b320f7c46 100644
--- a/dev/src/uu_tail/paths.rs.html
+++ b/dev/src/uu_tail/paths.rs.html
@@ -235,6 +235,19 @@
 235
 236
 237
+238
+239
+240
+241
+242
+243
+244
+245
+246
+247
+248
+249
+250
 
//  * This file is part of the uutils coreutils package.
 //  *
 //  * For the full copyright and license information, please view the LICENSE
@@ -257,6 +270,28 @@
     Stdin,
 }
 
+#[cfg(unix)]
+impl From<&OsStr> for InputKind {
+    fn from(value: &OsStr) -> Self {
+        if value == OsStr::new("-") {
+            Self::Stdin
+        } else {
+            Self::File(PathBuf::from(value))
+        }
+    }
+}
+
+#[cfg(not(unix))]
+impl From<&OsStr> for InputKind {
+    fn from(value: &OsStr) -> Self {
+        if value == OsStr::new(text::DASH) {
+            Self::Stdin
+        } else {
+            Self::File(PathBuf::from(value))
+        }
+    }
+}
+
 #[derive(Debug, Clone)]
 pub struct Input {
     kind: InputKind,
@@ -264,22 +299,13 @@
 }
 
 impl Input {
-    pub fn from<T: AsRef<OsStr>>(string: &T) -> Self {
-        let kind = if string.as_ref() == Path::new(text::DASH) {
-            InputKind::Stdin
-        } else {
-            InputKind::File(PathBuf::from(string.as_ref()))
-        };
+    pub fn from<T: AsRef<OsStr>>(string: T) -> Self {
+        let string = string.as_ref();
 
+        let kind = string.into();
         let display_name = match kind {
-            InputKind::File(_) => string.as_ref().to_string_lossy().to_string(),
-            InputKind::Stdin => {
-                if cfg!(unix) {
-                    text::STDIN_HEADER.to_string()
-                } else {
-                    string.as_ref().to_string_lossy().to_string()
-                }
-            }
+            InputKind::File(_) => string.to_string_lossy().to_string(),
+            InputKind::Stdin => text::STDIN_HEADER.to_string(),
         };
 
         Self { kind, display_name }
diff --git a/dev/src/uu_touch/touch.rs.html b/dev/src/uu_touch/touch.rs.html
index 3e6c82a62..f4bd16d84 100644
--- a/dev/src/uu_touch/touch.rs.html
+++ b/dev/src/uu_touch/touch.rs.html
@@ -693,13 +693,9 @@
     ) {
         (Some(reference), Some(date)) => {
             let (atime, mtime) = stat(Path::new(reference), !matches.get_flag(options::NO_DEREF))?;
-            if let Ok(offset) = humantime_to_duration::from_str(date) {
-                let mut seconds = offset.whole_seconds();
-                let mut nanos = offset.subsec_nanoseconds();
-                if nanos < 0 {
-                    nanos += 1_000_000_000;
-                    seconds -= 1;
-                }
+            if let Ok(offset) = parse_datetime::from_str(date) {
+                let seconds = offset.num_seconds();
+                let nanos = offset.num_nanoseconds().unwrap_or(0) % 1_000_000_000;
 
                 let ref_atime_secs = atime.unix_seconds();
                 let ref_atime_nanos = atime.nanoseconds();
@@ -1054,9 +1050,13 @@
         }
     }
 
-    if let Ok(duration) = humantime_to_duration::from_str(s) {
+    if let Ok(duration) = parse_datetime::from_str(s) {
         let now_local = time::OffsetDateTime::now_local().unwrap();
-        let diff = now_local.checked_add(duration).unwrap();
+        let diff = now_local
+            .checked_add(time::Duration::nanoseconds(
+                duration.num_nanoseconds().unwrap(),
+            ))
+            .unwrap();
         return Ok(local_dt_to_filetime(diff));
     }
 
diff --git a/dev/uu_cp/fn.localize_to_target.html b/dev/uu_cp/fn.localize_to_target.html
index ed4ac7d67..4fa1a00cd 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(
+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
diff --git a/dev/uu_cp/fn.uu_app.html b/dev/uu_cp/fn.uu_app.html
index 08e9b9488..1a61c717f 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

Function uu_cp::uu_app

source ·
pub fn uu_app() -> Command
\ No newline at end of file +uu_app in uu_cp - Rust

Function uu_cp::uu_app

source ·
pub fn uu_app() -> Command
\ No newline at end of file diff --git a/dev/uu_cp/fn.uumain.html b/dev/uu_cp/fn.uumain.html index 7aefcc328..3b60c2d52 100644 --- a/dev/uu_cp/fn.uumain.html +++ b/dev/uu_cp/fn.uumain.html @@ -1 +1 @@ -uumain in uu_cp - Rust

Function uu_cp::uumain

source ·
pub fn uumain(args: impl Args) -> i32
\ No newline at end of file +uumain in uu_cp - Rust

Function uu_cp::uumain

source ·
pub fn uumain(args: impl Args) -> i32
\ 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 33959772f..47c387b8f 100644 --- a/dev/uu_cp/fn.verify_target_type.html +++ b/dev/uu_cp/fn.verify_target_type.html @@ -1,4 +1,4 @@ -verify_target_type in uu_cp - Rust

Function uu_cp::verify_target_type

source ·
pub fn verify_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

diff --git a/dev/uu_cp/index.html b/dev/uu_cp/index.html index b6e06cff3..9a3d820b5 100644 --- a/dev/uu_cp/index.html +++ b/dev/uu_cp/index.html @@ -1,2 +1,2 @@ -uu_cp - Rust

Crate uu_cp

source ·

Structs

Enums

Functions

source§

impl Eq for FilterMode

source§

impl StructuralEq for FilterMode

source§

impl StructuralPartialEq for FilterMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/dev/uu_tail/args/enum.FollowMode.html b/dev/uu_tail/args/enum.FollowMode.html index 258656375..db8e3823b 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§

§

Descriptor

§

Name

Trait Implementations§

source§

impl Clone for FollowMode

source§

fn clone(&self) -> FollowMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for FollowMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
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§

§

Descriptor

§

Name

Trait Implementations§

source§

impl Clone for FollowMode

source§

fn clone(&self) -> FollowMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for FollowMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
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 by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Copy for FollowMode

source§

impl Eq for FollowMode

source§

impl StructuralEq for FollowMode

source§

impl StructuralPartialEq for FollowMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +sufficient, and should not be overridden without very good reason.

source§

impl Copy for FollowMode

source§

impl Eq for FollowMode

source§

impl StructuralEq for FollowMode

source§

impl StructuralPartialEq for FollowMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/dev/uu_tail/args/enum.Signum.html b/dev/uu_tail/args/enum.Signum.html index 5acbdf954..dcf034ebd 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

Enum uu_tail::args::Signum

source ·
pub enum Signum {
+Signum in uu_tail::args - Rust

Enum uu_tail::args::Signum

source ·
pub enum Signum {
     Negative(u64),
     Positive(u64),
     PlusZero,
     MinusZero,
-}

Variants§

§

Negative(u64)

§

Positive(u64)

§

PlusZero

§

MinusZero

Trait Implementations§

source§

impl Clone for Signum

source§

fn clone(&self) -> Signum

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Signum

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
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§

§

Negative(u64)

§

Positive(u64)

§

PlusZero

§

MinusZero

Trait Implementations§

source§

impl Clone for Signum

source§

fn clone(&self) -> Signum

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Signum

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
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 by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Copy for Signum

source§

impl Eq for Signum

source§

impl StructuralEq for Signum

source§

impl StructuralPartialEq for Signum

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +sufficient, and should not be overridden without very good reason.

source§

impl Copy for Signum

source§

impl Eq for Signum

source§

impl StructuralEq for Signum

source§

impl StructuralPartialEq for Signum

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/dev/uu_tail/args/enum.VerificationResult.html b/dev/uu_tail/args/enum.VerificationResult.html index bad31bc0f..b093a78fd 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
pub enum VerificationResult {
+VerificationResult in uu_tail::args - Rust
pub enum VerificationResult {
     Ok,
     CannotFollowStdinByName,
     NoOutput,
-}

Variants§

§

Ok

§

CannotFollowStdinByName

§

NoOutput

Trait Implementations§

source§

impl Debug for VerificationResult

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +}

Variants§

§

Ok

§

CannotFollowStdinByName

§

NoOutput

Trait Implementations§

source§

impl Debug for VerificationResult

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/dev/uu_tail/args/fn.parse_args.html b/dev/uu_tail/args/fn.parse_args.html index 9161a6d16..68181e78f 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.parse_obsolete.html b/dev/uu_tail/args/fn.parse_obsolete.html index 74712ba18..07cd44d36 100644 --- a/dev/uu_tail/args/fn.parse_obsolete.html +++ b/dev/uu_tail/args/fn.parse_obsolete.html @@ -1,4 +1,4 @@ -parse_obsolete in uu_tail::args - Rust

Function uu_tail::args::parse_obsolete

source ·
pub fn parse_obsolete(
+parse_obsolete in uu_tail::args - Rust

Function uu_tail::args::parse_obsolete

source ·
pub fn parse_obsolete(
     arg: &OsString,
     input: Option<&OsString>
 ) -> UResult<Option<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 d0c30c1b3..127265a8f 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

Function uu_tail::args::uu_app

source ·
pub fn uu_app() -> Command
\ No newline at end of file +uu_app in uu_tail::args - Rust

Function uu_tail::args::uu_app

source ·
pub fn uu_app() -> Command
\ No newline at end of file diff --git a/dev/uu_tail/args/index.html b/dev/uu_tail/args/index.html index a08ffc94a..ac9058dfe 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/constant.ARG_FILES.html b/dev/uu_tail/args/options/constant.ARG_FILES.html index 7c3067079..f0b8b99db 100644 --- a/dev/uu_tail/args/options/constant.ARG_FILES.html +++ b/dev/uu_tail/args/options/constant.ARG_FILES.html @@ -1 +1 @@ -ARG_FILES in uu_tail::args::options - Rust

Constant uu_tail::args::options::ARG_FILES

source ·
pub const ARG_FILES: &str = "files";
\ No newline at end of file +ARG_FILES in uu_tail::args::options - Rust

Constant uu_tail::args::options::ARG_FILES

source ·
pub const ARG_FILES: &str = "files";
\ No newline at end of file diff --git a/dev/uu_tail/args/options/constant.BYTES.html b/dev/uu_tail/args/options/constant.BYTES.html index a8c1772fa..abdc31667 100644 --- a/dev/uu_tail/args/options/constant.BYTES.html +++ b/dev/uu_tail/args/options/constant.BYTES.html @@ -1 +1 @@ -BYTES in uu_tail::args::options - Rust

Constant uu_tail::args::options::BYTES

source ·
pub const BYTES: &str = "bytes";
\ No newline at end of file +BYTES in uu_tail::args::options - Rust

Constant uu_tail::args::options::BYTES

source ·
pub const BYTES: &str = "bytes";
\ No newline at end of file diff --git a/dev/uu_tail/args/options/constant.DISABLE_INOTIFY_TERM.html b/dev/uu_tail/args/options/constant.DISABLE_INOTIFY_TERM.html index 28baec721..e32e69d70 100644 --- a/dev/uu_tail/args/options/constant.DISABLE_INOTIFY_TERM.html +++ b/dev/uu_tail/args/options/constant.DISABLE_INOTIFY_TERM.html @@ -1 +1 @@ -DISABLE_INOTIFY_TERM in uu_tail::args::options - Rust
pub const DISABLE_INOTIFY_TERM: &str = "-disable-inotify";
\ No newline at end of file +DISABLE_INOTIFY_TERM in uu_tail::args::options - Rust
pub const DISABLE_INOTIFY_TERM: &str = "-disable-inotify";
\ No newline at end of file diff --git a/dev/uu_tail/args/options/constant.FOLLOW.html b/dev/uu_tail/args/options/constant.FOLLOW.html index 037c19520..b71fe9c98 100644 --- a/dev/uu_tail/args/options/constant.FOLLOW.html +++ b/dev/uu_tail/args/options/constant.FOLLOW.html @@ -1 +1 @@ -FOLLOW in uu_tail::args::options - Rust

Constant uu_tail::args::options::FOLLOW

source ·
pub const FOLLOW: &str = "follow";
\ No newline at end of file +FOLLOW in uu_tail::args::options - Rust

Constant uu_tail::args::options::FOLLOW

source ·
pub const FOLLOW: &str = "follow";
\ No newline at end of file diff --git a/dev/uu_tail/args/options/constant.FOLLOW_RETRY.html b/dev/uu_tail/args/options/constant.FOLLOW_RETRY.html index f1ac4fea3..6862ba743 100644 --- a/dev/uu_tail/args/options/constant.FOLLOW_RETRY.html +++ b/dev/uu_tail/args/options/constant.FOLLOW_RETRY.html @@ -1 +1 @@ -FOLLOW_RETRY in uu_tail::args::options - Rust

Constant uu_tail::args::options::FOLLOW_RETRY

source ·
pub const FOLLOW_RETRY: &str = "F";
\ No newline at end of file +FOLLOW_RETRY in uu_tail::args::options - Rust

Constant uu_tail::args::options::FOLLOW_RETRY

source ·
pub const FOLLOW_RETRY: &str = "F";
\ No newline at end of file diff --git a/dev/uu_tail/args/options/constant.LINES.html b/dev/uu_tail/args/options/constant.LINES.html index 81cba3aaa..116febcf1 100644 --- a/dev/uu_tail/args/options/constant.LINES.html +++ b/dev/uu_tail/args/options/constant.LINES.html @@ -1 +1 @@ -LINES in uu_tail::args::options - Rust

Constant uu_tail::args::options::LINES

source ·
pub const LINES: &str = "lines";
\ No newline at end of file +LINES in uu_tail::args::options - Rust

Constant uu_tail::args::options::LINES

source ·
pub const LINES: &str = "lines";
\ No newline at end of file diff --git a/dev/uu_tail/args/options/constant.MAX_UNCHANGED_STATS.html b/dev/uu_tail/args/options/constant.MAX_UNCHANGED_STATS.html index df216a331..6e6dfc7bf 100644 --- a/dev/uu_tail/args/options/constant.MAX_UNCHANGED_STATS.html +++ b/dev/uu_tail/args/options/constant.MAX_UNCHANGED_STATS.html @@ -1 +1 @@ -MAX_UNCHANGED_STATS in uu_tail::args::options - Rust
pub const MAX_UNCHANGED_STATS: &str = "max-unchanged-stats";
\ No newline at end of file +MAX_UNCHANGED_STATS in uu_tail::args::options - Rust
pub const MAX_UNCHANGED_STATS: &str = "max-unchanged-stats";
\ No newline at end of file diff --git a/dev/uu_tail/args/options/constant.PID.html b/dev/uu_tail/args/options/constant.PID.html index 5b7e72485..f594a328d 100644 --- a/dev/uu_tail/args/options/constant.PID.html +++ b/dev/uu_tail/args/options/constant.PID.html @@ -1 +1 @@ -PID in uu_tail::args::options - Rust

Constant uu_tail::args::options::PID

source ·
pub const PID: &str = "pid";
\ No newline at end of file +PID in uu_tail::args::options - Rust

Constant uu_tail::args::options::PID

source ·
pub const PID: &str = "pid";
\ No newline at end of file diff --git a/dev/uu_tail/args/options/constant.PRESUME_INPUT_PIPE.html b/dev/uu_tail/args/options/constant.PRESUME_INPUT_PIPE.html index ccfcc08e5..96061d002 100644 --- a/dev/uu_tail/args/options/constant.PRESUME_INPUT_PIPE.html +++ b/dev/uu_tail/args/options/constant.PRESUME_INPUT_PIPE.html @@ -1 +1 @@ -PRESUME_INPUT_PIPE in uu_tail::args::options - Rust
pub const PRESUME_INPUT_PIPE: &str = "-presume-input-pipe";
\ No newline at end of file +PRESUME_INPUT_PIPE in uu_tail::args::options - Rust
pub const PRESUME_INPUT_PIPE: &str = "-presume-input-pipe";
\ No newline at end of file diff --git a/dev/uu_tail/args/options/constant.RETRY.html b/dev/uu_tail/args/options/constant.RETRY.html index 6c6dd81ab..c417a8e31 100644 --- a/dev/uu_tail/args/options/constant.RETRY.html +++ b/dev/uu_tail/args/options/constant.RETRY.html @@ -1 +1 @@ -RETRY in uu_tail::args::options - Rust

Constant uu_tail::args::options::RETRY

source ·
pub const RETRY: &str = "retry";
\ No newline at end of file +RETRY in uu_tail::args::options - Rust

Constant uu_tail::args::options::RETRY

source ·
pub const RETRY: &str = "retry";
\ No newline at end of file diff --git a/dev/uu_tail/args/options/constant.SLEEP_INT.html b/dev/uu_tail/args/options/constant.SLEEP_INT.html index 8be1db1d9..182e15b37 100644 --- a/dev/uu_tail/args/options/constant.SLEEP_INT.html +++ b/dev/uu_tail/args/options/constant.SLEEP_INT.html @@ -1 +1 @@ -SLEEP_INT in uu_tail::args::options - Rust

Constant uu_tail::args::options::SLEEP_INT

source ·
pub const SLEEP_INT: &str = "sleep-interval";
\ No newline at end of file +SLEEP_INT in uu_tail::args::options - Rust

Constant uu_tail::args::options::SLEEP_INT

source ·
pub const SLEEP_INT: &str = "sleep-interval";
\ No newline at end of file diff --git a/dev/uu_tail/args/options/constant.USE_POLLING.html b/dev/uu_tail/args/options/constant.USE_POLLING.html index 6c8c847e8..9ecc82599 100644 --- a/dev/uu_tail/args/options/constant.USE_POLLING.html +++ b/dev/uu_tail/args/options/constant.USE_POLLING.html @@ -1 +1 @@ -USE_POLLING in uu_tail::args::options - Rust

Constant uu_tail::args::options::USE_POLLING

source ·
pub const USE_POLLING: &str = "use-polling";
\ No newline at end of file +USE_POLLING in uu_tail::args::options - Rust

Constant uu_tail::args::options::USE_POLLING

source ·
pub const USE_POLLING: &str = "use-polling";
\ No newline at end of file diff --git a/dev/uu_tail/args/options/constant.ZERO_TERM.html b/dev/uu_tail/args/options/constant.ZERO_TERM.html index cb3fd5575..84959c46e 100644 --- a/dev/uu_tail/args/options/constant.ZERO_TERM.html +++ b/dev/uu_tail/args/options/constant.ZERO_TERM.html @@ -1 +1 @@ -ZERO_TERM in uu_tail::args::options - Rust

Constant uu_tail::args::options::ZERO_TERM

source ·
pub const ZERO_TERM: &str = "zero-terminated";
\ No newline at end of file +ZERO_TERM in uu_tail::args::options - Rust

Constant uu_tail::args::options::ZERO_TERM

source ·
pub const ZERO_TERM: &str = "zero-terminated";
\ 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 abc4fabd6..cdca63601 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/verbosity/constant.QUIET.html b/dev/uu_tail/args/options/verbosity/constant.QUIET.html index 448f48277..c0ba48930 100644 --- a/dev/uu_tail/args/options/verbosity/constant.QUIET.html +++ b/dev/uu_tail/args/options/verbosity/constant.QUIET.html @@ -1 +1 @@ -QUIET in uu_tail::args::options::verbosity - Rust

Constant uu_tail::args::options::verbosity::QUIET

source ·
pub const QUIET: &str = "quiet";
\ No newline at end of file +QUIET in uu_tail::args::options::verbosity - Rust

Constant uu_tail::args::options::verbosity::QUIET

source ·
pub const QUIET: &str = "quiet";
\ No newline at end of file diff --git a/dev/uu_tail/args/options/verbosity/constant.VERBOSE.html b/dev/uu_tail/args/options/verbosity/constant.VERBOSE.html index 8f3bd427d..65115d0f9 100644 --- a/dev/uu_tail/args/options/verbosity/constant.VERBOSE.html +++ b/dev/uu_tail/args/options/verbosity/constant.VERBOSE.html @@ -1 +1 @@ -VERBOSE in uu_tail::args::options::verbosity - Rust
pub const VERBOSE: &str = "verbose";
\ No newline at end of file +VERBOSE in uu_tail::args::options::verbosity - Rust
pub const VERBOSE: &str = "verbose";
\ 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 bfd148e99..ffb1280d9 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/struct.Settings.html b/dev/uu_tail/args/struct.Settings.html index a7fe70662..700783efa 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

Struct uu_tail::args::Settings

source ·
pub struct Settings {
+Settings in uu_tail::args - Rust

Struct uu_tail::args::Settings

source ·
pub struct Settings {
     pub follow: Option<FollowMode>,
     pub max_unchanged_stats: u32,
     pub mode: FilterMode,
@@ -8,14 +8,15 @@
     pub use_polling: bool,
     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

source

pub fn from_obsolete_args(args: &ObsoleteArgs, name: Option<&OsString>) -> Self

source

pub fn from(matches: &ArgMatches) -> UResult<Self>

source

pub fn has_only_stdin(&self) -> bool

source

pub fn has_stdin(&self) -> bool

source

pub fn num_inputs(&self) -> usize

source

pub fn check_warnings(&self)

Check Settings for problematic configurations of tail originating from user provided + pub inputs: Vec<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: Vec<Input>

FILE(s) positional arguments

+

Implementations§

source§

impl Settings

source

pub fn from_obsolete_args(args: &ObsoleteArgs, name: Option<&OsString>) -> Self

source

pub fn from(matches: &ArgMatches) -> UResult<Self>

source

pub fn has_only_stdin(&self) -> bool

source

pub fn has_stdin(&self) -> bool

source

pub fn num_inputs(&self) -> usize

source

pub fn check_warnings(&self)

Check Settings for problematic configurations of tail originating from user provided command line arguments and print appropriate warnings.

-
source

pub fn verify(&self) -> VerificationResult

Verify Settings and try to find unsolvable misconfigurations of tail originating from +

source

pub 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§

source§

impl Debug for Settings

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Settings

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +

Trait Implementations§

source§

impl Debug for Settings

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Settings

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/dev/uu_touch/fn.uu_app.html b/dev/uu_touch/fn.uu_app.html index 2fdf8f76e..1c4ecb27e 100644 --- a/dev/uu_touch/fn.uu_app.html +++ b/dev/uu_touch/fn.uu_app.html @@ -1 +1 @@ -uu_app in uu_touch - Rust

Function uu_touch::uu_app

source ·
pub fn uu_app() -> Command
\ No newline at end of file +uu_app in uu_touch - Rust

Function uu_touch::uu_app

source ·
pub fn uu_app() -> Command
\ No newline at end of file