Skip to content

Commit bbe1c36

Browse files
committed
deploy: f0e8d44
1 parent 178d460 commit bbe1c36

File tree

14 files changed

+28
-30
lines changed

14 files changed

+28
-30
lines changed

dev/src/uu_factor/cli.rs.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
<a href="#87" id="87">87</a>
8888
<a href="#88" id="88">88</a>
8989
<a href="#89" id="89">89</a>
90+
<a href="#90" id="90">90</a>
9091
</pre><pre class="rust"><code><span class="comment">// * This file is part of the uutils coreutils package.
9192
// *
9293
// * (c) 2014 T. Jameson Little &lt;t.jameson.little@gmail.com&gt;
@@ -105,15 +106,15 @@
105106
<span class="kw">pub use </span>factor::<span class="kw-2">*</span>;
106107
<span class="kw">use </span>uucore::display::Quotable;
107108
<span class="kw">use </span>uucore::error::UResult;
108-
<span class="kw">use </span>uucore::{show_error, show_warning};
109+
<span class="kw">use </span>uucore::{format_usage, help_about, help_usage, show_error, show_warning};
109110

110111
<span class="kw">mod </span>miller_rabin;
111112
<span class="kw">pub mod </span>numeric;
112113
<span class="kw">mod </span>rho;
113114
<span class="kw">pub mod </span>table;
114115

115-
<span class="kw">static </span>ABOUT: <span class="kw-2">&amp;</span>str = <span class="string">r#&quot;Print the prime factors of the given NUMBER(s).
116-
If none are specified, read from standard input.&quot;#</span>;
116+
<span class="kw">const </span>ABOUT: <span class="kw-2">&amp;</span>str = <span class="macro">help_about!</span>(<span class="string">&quot;factor.md&quot;</span>);
117+
<span class="kw">const </span>USAGE: <span class="kw-2">&amp;</span>str = <span class="macro">help_usage!</span>(<span class="string">&quot;factor.md&quot;</span>);
117118

118119
<span class="kw">mod </span>options {
119120
<span class="kw">pub static </span>NUMBER: <span class="kw-2">&amp;</span>str = <span class="string">&quot;NUMBER&quot;</span>;
@@ -173,6 +174,7 @@
173174
Command::new(uucore::util_name())
174175
.version(<span class="macro">crate_version!</span>())
175176
.about(ABOUT)
177+
.override_usage(format_usage(USAGE))
176178
.infer_long_args(<span class="bool-val">true</span>)
177179
.arg(Arg::new(options::NUMBER).action(ArgAction::Append))
178180
}

dev/src/uu_hashsum/hashsum.rs.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,10 @@
669669
<a href="#669" id="669">669</a>
670670
<a href="#670" id="670">670</a>
671671
<a href="#671" id="671">671</a>
672+
<a href="#672" id="672">672</a>
673+
<a href="#673" id="673">673</a>
674+
<a href="#674" id="674">674</a>
675+
<a href="#675" id="675">675</a>
672676
</pre><pre class="rust"><code><span class="comment">// * This file is part of the uutils coreutils package.
673677
// *
674678
// * (c) Alex Lyon &lt;arcterus@mail.com&gt;
@@ -700,8 +704,11 @@
700704
Sha3_384, Sha3_512, Sha512, Shake128, Shake256,
701705
};
702706
<span class="kw">use </span>uucore::{crash, display::Quotable, show_warning};
707+
<span class="kw">use </span>uucore::{format_usage, help_about, help_usage};
703708

704709
<span class="kw">const </span>NAME: <span class="kw-2">&amp;</span>str = <span class="string">&quot;hashsum&quot;</span>;
710+
<span class="kw">const </span>ABOUT: <span class="kw-2">&amp;</span>str = <span class="macro">help_about!</span>(<span class="string">&quot;hashsum.md&quot;</span>);
711+
<span class="kw">const </span>USAGE: <span class="kw-2">&amp;</span>str = <span class="macro">help_usage!</span>(<span class="string">&quot;hashsum.md&quot;</span>);
705712

706713
<span class="kw">struct </span>Options {
707714
algoname: <span class="kw-2">&amp;</span><span class="lifetime">&#39;static </span>str,
@@ -969,7 +976,8 @@
969976
</span><span class="kw">const </span>TEXT_HELP: <span class="kw-2">&amp;</span>str = <span class="string">&quot;read in text mode (default)&quot;</span>;
970977
Command::new(uucore::util_name())
971978
.version(<span class="macro">crate_version!</span>())
972-
.about(<span class="string">&quot;Compute and check message digests.&quot;</span>)
979+
.about(ABOUT)
980+
.override_usage(format_usage(USAGE))
973981
.infer_long_args(<span class="bool-val">true</span>)
974982
.arg(
975983
Arg::new(<span class="string">&quot;binary&quot;</span>)

dev/src/uu_head/head.rs.html

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -646,12 +646,6 @@
646646
<a href="#646" id="646">646</a>
647647
<a href="#647" id="647">647</a>
648648
<a href="#648" id="648">648</a>
649-
<a href="#649" id="649">649</a>
650-
<a href="#650" id="650">650</a>
651-
<a href="#651" id="651">651</a>
652-
<a href="#652" id="652">652</a>
653-
<a href="#653" id="653">653</a>
654-
<a href="#654" id="654">654</a>
655649
</pre><pre class="rust"><code><span class="comment">// * This file is part of the uutils coreutils package.
656650
// *
657651
// * For the full copyright and license information, please view the LICENSE
@@ -665,21 +659,15 @@
665659
<span class="kw">use </span>uucore::display::Quotable;
666660
<span class="kw">use </span>uucore::error::{FromIo, UError, UResult, USimpleError};
667661
<span class="kw">use </span>uucore::lines::lines;
668-
<span class="kw">use </span>uucore::{format_usage, show};
662+
<span class="kw">use </span>uucore::{format_usage, help_about, help_usage, show};
669663

670664
<span class="kw">const </span>BUF_SIZE: usize = <span class="number">65536</span>;
671665

672666
<span class="doccomment">/// The capacity in bytes for buffered writers.
673667
</span><span class="kw">const </span>BUFWRITER_CAPACITY: usize = <span class="number">16_384</span>; <span class="comment">// 16 kilobytes
674668

675-
</span><span class="kw">const </span>ABOUT: <span class="kw-2">&amp;</span>str = <span class="string">&quot;\
676-
Print the first 10 lines of each FILE to standard output.\n\
677-
With more than one FILE, precede each with a header giving the file name.\n\
678-
With no FILE, or when FILE is -, read standard input.\n\
679-
\n\
680-
Mandatory arguments to long flags are mandatory for short flags too.\
681-
&quot;</span>;
682-
<span class="kw">const </span>USAGE: <span class="kw-2">&amp;</span>str = <span class="string">&quot;{} [FLAG]... [FILE]...&quot;</span>;
669+
</span><span class="kw">const </span>ABOUT: <span class="kw-2">&amp;</span>str = <span class="macro">help_about!</span>(<span class="string">&quot;head.md&quot;</span>);
670+
<span class="kw">const </span>USAGE: <span class="kw-2">&amp;</span>str = <span class="macro">help_usage!</span>(<span class="string">&quot;head.md&quot;</span>);
683671

684672
<span class="kw">mod </span>options {
685673
<span class="kw">pub const </span>BYTES_NAME: <span class="kw-2">&amp;</span>str = <span class="string">&quot;BYTES&quot;</span>;

dev/uu_factor/fn.uu_app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `uu_app` fn in crate `uu_factor`."><meta name="keywords" content="rust, rustlang, rust-lang, uu_app"><title>uu_app in uu_factor - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-1f7d512b176f0f72.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Bold-124a1ca42af929b6.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-93196c7a1c3542a8.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../static.files/light-4743e13df3dfe8c4.css"><link rel="stylesheet" disabled href="../static.files/dark-0e1b889528bd466b.css"><link rel="stylesheet" disabled href="../static.files/ayu-65289d5d067c7c66.css"><script id="default-settings" ></script><script src="../static.files/storage-d43fa987303ecbbb.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-3367e395607fafc1.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="logo-container" href="../uu_factor/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../uu_factor/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In uu_factor</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-5ec35bf9ca753509.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="index.html">uu_factor</a>::<wbr><a class="fn" href="#">uu_app</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../src/uu_factor/cli.rs.html#83-89">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><div class="item-decl"><pre class="rust"><code>pub fn uu_app() -&gt; Command</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="uu_factor" data-themes="" data-resource-suffix="" data-rustdoc-version="1.68.0 (2c8cc3432 2023-03-06)" data-search-js="search-98d53477a794af0b.js" data-settings-js="settings-c3c521c753752a1a.js" data-settings-css="settings-08ddfdda51b8ee2e.css" ></div></body></html>
1+
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `uu_app` fn in crate `uu_factor`."><meta name="keywords" content="rust, rustlang, rust-lang, uu_app"><title>uu_app in uu_factor - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-1f7d512b176f0f72.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Bold-124a1ca42af929b6.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-93196c7a1c3542a8.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../static.files/light-4743e13df3dfe8c4.css"><link rel="stylesheet" disabled href="../static.files/dark-0e1b889528bd466b.css"><link rel="stylesheet" disabled href="../static.files/ayu-65289d5d067c7c66.css"><script id="default-settings" ></script><script src="../static.files/storage-d43fa987303ecbbb.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-3367e395607fafc1.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="logo-container" href="../uu_factor/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../uu_factor/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In uu_factor</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-5ec35bf9ca753509.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="index.html">uu_factor</a>::<wbr><a class="fn" href="#">uu_app</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../src/uu_factor/cli.rs.html#83-90">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><div class="item-decl"><pre class="rust"><code>pub fn uu_app() -&gt; Command</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="uu_factor" data-themes="" data-resource-suffix="" data-rustdoc-version="1.68.0 (2c8cc3432 2023-03-06)" data-search-js="search-98d53477a794af0b.js" data-settings-js="settings-c3c521c753752a1a.js" data-settings-css="settings-08ddfdda51b8ee2e.css" ></div></body></html>

0 commit comments

Comments
 (0)