You've already forked uutils.github.io
mirror of
https://github.com/uutils/uutils.github.io.git
synced 2026-06-10 16:12:28 -07:00
deploy: f0e8d44e6e
This commit is contained in:
@@ -219,18 +219,6 @@
|
||||
<a href="#219" id="219">219</a>
|
||||
<a href="#220" id="220">220</a>
|
||||
<a href="#221" id="221">221</a>
|
||||
<a href="#222" id="222">222</a>
|
||||
<a href="#223" id="223">223</a>
|
||||
<a href="#224" id="224">224</a>
|
||||
<a href="#225" id="225">225</a>
|
||||
<a href="#226" id="226">226</a>
|
||||
<a href="#227" id="227">227</a>
|
||||
<a href="#228" id="228">228</a>
|
||||
<a href="#229" id="229">229</a>
|
||||
<a href="#230" id="230">230</a>
|
||||
<a href="#231" id="231">231</a>
|
||||
<a href="#232" id="232">232</a>
|
||||
<a href="#233" id="233">233</a>
|
||||
</pre><pre class="rust"><code><span class="comment">// * This file is part of the uutils coreutils package.
|
||||
// *
|
||||
// * (c) Dorota Kapturkiewicz <dokaptur@gmail.com>
|
||||
@@ -250,23 +238,11 @@
|
||||
<span class="kw">use </span>tempfile::TempDir;
|
||||
<span class="kw">use </span>uucore::error::{FromIo, UResult, USimpleError, UUsageError};
|
||||
<span class="kw">use </span>uucore::parse_size::parse_size;
|
||||
<span class="kw">use </span>uucore::{crash, format_usage};
|
||||
<span class="kw">use </span>uucore::{crash, format_usage, help_about, help_section, help_usage};
|
||||
|
||||
<span class="kw">static </span>ABOUT: <span class="kw-2">&</span>str =
|
||||
<span class="string">"Run COMMAND, with modified buffering operations for its standard streams.\n\n\
|
||||
Mandatory arguments to long options are mandatory for short options too."</span>;
|
||||
<span class="kw">const </span>USAGE: <span class="kw-2">&</span>str = <span class="string">"{} OPTION... COMMAND"</span>;
|
||||
<span class="kw">static </span>LONG_HELP: <span class="kw-2">&</span>str = <span class="string">"If MODE is 'L' the corresponding stream will be line buffered.\n\
|
||||
This option is invalid with standard input.\n\n\
|
||||
If MODE is '0' the corresponding stream will be unbuffered.\n\n\
|
||||
Otherwise MODE is a number which may be followed by one of the following:\n\n\
|
||||
KB 1000, K 1024, MB 1000*1000, M 1024*1024, and so on for G, T, P, E, Z, Y.\n\
|
||||
In this case the corresponding stream will be fully buffered with the buffer size set to \
|
||||
MODE bytes.\n\n\
|
||||
NOTE: If COMMAND adjusts the buffering of its standard streams ('tee' does for e.g.) then \
|
||||
that will override corresponding settings changed by 'stdbuf'.\n\
|
||||
Also some filters (like 'dd' and 'cat' etc.) don't use streams for I/O, \
|
||||
and are thus unaffected by 'stdbuf' settings.\n"</span>;
|
||||
<span class="kw">const </span>ABOUT: <span class="kw-2">&</span>str = <span class="macro">help_about!</span>(<span class="string">"stdbuf.md"</span>);
|
||||
<span class="kw">const </span>USAGE: <span class="kw-2">&</span>str = <span class="macro">help_usage!</span>(<span class="string">"stdbuf.md"</span>);
|
||||
<span class="kw">const </span>LONG_HELP: <span class="kw-2">&</span>str = <span class="macro">help_section!</span>(<span class="string">"after help"</span>, <span class="string">"stdbuf.md"</span>);
|
||||
|
||||
<span class="kw">mod </span>options {
|
||||
<span class="kw">pub const </span>INPUT: <span class="kw-2">&</span>str = <span class="string">"input"</span>;
|
||||
|
||||
@@ -410,9 +410,6 @@
|
||||
<a href="#410" id="410">410</a>
|
||||
<a href="#411" id="411">411</a>
|
||||
<a href="#412" id="412">412</a>
|
||||
<a href="#413" id="413">413</a>
|
||||
<a href="#414" id="414">414</a>
|
||||
<a href="#415" id="415">415</a>
|
||||
</pre><pre class="rust"><code><span class="comment">// * This file is part of the uutils coreutils package.
|
||||
// *
|
||||
// * For the full copyright and license information, please view the LICENSE file
|
||||
@@ -433,7 +430,7 @@
|
||||
<span class="kw">use </span>std::os::unix::fs::OpenOptionsExt;
|
||||
<span class="kw">use </span>std::os::unix::io::{AsRawFd, IntoRawFd, RawFd};
|
||||
<span class="kw">use </span>uucore::error::{UResult, USimpleError};
|
||||
<span class="kw">use </span>uucore::format_usage;
|
||||
<span class="kw">use </span>uucore::{format_usage, help_about, help_usage};
|
||||
|
||||
<span class="attr">#[cfg(not(any(
|
||||
target_os = <span class="string">"freebsd"</span>,
|
||||
@@ -446,11 +443,8 @@
|
||||
</span><span class="kw">use </span>flags::BAUD_RATES;
|
||||
<span class="kw">use </span>flags::{CONTROL_FLAGS, INPUT_FLAGS, LOCAL_FLAGS, OUTPUT_FLAGS};
|
||||
|
||||
<span class="kw">const </span>USAGE: <span class="kw-2">&</span>str = <span class="string">"\
|
||||
{} [-F DEVICE | --file=DEVICE] [SETTING]...
|
||||
{} [-F DEVICE | --file=DEVICE] [-a|--all]
|
||||
{} [-F DEVICE | --file=DEVICE] [-g|--save]"</span>;
|
||||
<span class="kw">const </span>SUMMARY: <span class="kw-2">&</span>str = <span class="string">"Print or change terminal characteristics."</span>;
|
||||
<span class="kw">const </span>USAGE: <span class="kw-2">&</span>str = <span class="macro">help_usage!</span>(<span class="string">"stty.md"</span>);
|
||||
<span class="kw">const </span>SUMMARY: <span class="kw-2">&</span>str = <span class="macro">help_about!</span>(<span class="string">"stty.md"</span>);
|
||||
|
||||
<span class="attr">#[derive(Clone, Copy, Debug)]
|
||||
</span><span class="kw">pub struct </span>Flag<T> {
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user