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: fff3a4c4852df16e2720c5098d3dd872f7f68bdf
This commit is contained in:
@@ -509,6 +509,10 @@
|
||||
<a href="#509" id="509">509</a>
|
||||
<a href="#510" id="510">510</a>
|
||||
<a href="#511" id="511">511</a>
|
||||
<a href="#512" id="512">512</a>
|
||||
<a href="#513" id="513">513</a>
|
||||
<a href="#514" id="514">514</a>
|
||||
<a href="#515" id="515">515</a>
|
||||
</pre><pre class="rust"><code><span class="comment">// * This file is part of the uutils coreutils package.
|
||||
// *
|
||||
// * (c) Martin Kysel <code@martinkysel.com>
|
||||
@@ -539,7 +543,10 @@
|
||||
<span class="kw">use </span>unicode_width::UnicodeWidthStr;
|
||||
<span class="kw">use </span>uucore::display::Quotable;
|
||||
<span class="kw">use </span>uucore::error::{UResult, USimpleError, UUsageError};
|
||||
<span class="kw">use </span>uucore::{format_usage, help_about, help_usage};
|
||||
|
||||
<span class="kw">const </span>ABOUT: <span class="kw-2">&</span>str = <span class="macro">help_about!</span>(<span class="string">"more.md"</span>);
|
||||
<span class="kw">const </span>USAGE: <span class="kw-2">&</span>str = <span class="macro">help_usage!</span>(<span class="string">"more.md"</span>);
|
||||
<span class="kw">const </span>BELL: <span class="kw-2">&</span>str = <span class="string">"\x07"</span>;
|
||||
|
||||
<span class="kw">pub mod </span>options {
|
||||
@@ -608,7 +615,8 @@
|
||||
|
||||
<span class="kw">pub fn </span>uu_app() -> Command {
|
||||
Command::new(uucore::util_name())
|
||||
.about(<span class="string">"A file perusal filter for CRT viewing."</span>)
|
||||
.about(ABOUT)
|
||||
.override_usage(format_usage(USAGE))
|
||||
.version(<span class="macro">crate_version!</span>())
|
||||
.infer_long_args(<span class="bool-val">true</span>)
|
||||
.arg(
|
||||
|
||||
@@ -209,10 +209,6 @@
|
||||
<a href="#209" id="209">209</a>
|
||||
<a href="#210" id="210">210</a>
|
||||
<a href="#211" id="211">211</a>
|
||||
<a href="#212" id="212">212</a>
|
||||
<a href="#213" id="213">213</a>
|
||||
<a href="#214" id="214">214</a>
|
||||
<a href="#215" id="215">215</a>
|
||||
</pre><pre class="rust"><code><span class="comment">// * This file is part of the uutils coreutils package.
|
||||
// *
|
||||
// * (c) Alex Lyon <arcterus@mail.com>
|
||||
@@ -230,7 +226,7 @@
|
||||
<span class="kw">use </span>clap::{crate_version, Arg, ArgAction, Command};
|
||||
<span class="kw">use </span>uucore::{
|
||||
error::{set_exit_code, UClapError, UResult, USimpleError, UUsageError},
|
||||
format_usage, show_error,
|
||||
format_usage, help_about, help_usage, show_error,
|
||||
};
|
||||
|
||||
<span class="kw">pub mod </span>options {
|
||||
@@ -238,12 +234,8 @@
|
||||
<span class="kw">pub static </span>COMMAND: <span class="kw-2">&</span>str = <span class="string">"COMMAND"</span>;
|
||||
}
|
||||
|
||||
<span class="kw">const </span>ABOUT: <span class="kw-2">&</span>str = <span class="string">"\
|
||||
Run COMMAND with an adjusted niceness, which affects process scheduling. \
|
||||
With no COMMAND, print the current niceness. Niceness values range from at \
|
||||
least -20 (most favorable to the process) to 19 (least favorable to the \
|
||||
process)."</span>;
|
||||
<span class="kw">const </span>USAGE: <span class="kw-2">&</span>str = <span class="string">"{} [OPTIONS] [COMMAND [ARGS]]"</span>;
|
||||
<span class="kw">const </span>ABOUT: <span class="kw-2">&</span>str = <span class="macro">help_about!</span>(<span class="string">"nice.md"</span>);
|
||||
<span class="kw">const </span>USAGE: <span class="kw-2">&</span>str = <span class="macro">help_usage!</span>(<span class="string">"nice.md"</span>);
|
||||
|
||||
<span class="kw">fn </span>is_prefix_of(maybe_prefix: <span class="kw-2">&</span>str, target: <span class="kw-2">&</span>str, min_match: usize) -> bool {
|
||||
<span class="kw">if </span>maybe_prefix.len() < min_match || maybe_prefix.len() > target.len() {
|
||||
|
||||
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
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
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user