Skip to content

Commit a0d88bf

Browse files
committed
deploy: f0e8d44
1 parent 8617beb commit a0d88bf

20 files changed

+51
-69
lines changed

dev/src/uu_factor/cli.rs.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@
118118
<a href="#118" id="118">118</a>
119119
<a href="#119" id="119">119</a>
120120
<a href="#120" id="120">120</a>
121+
<a href="#121" id="121">121</a>
121122
</pre><pre class="rust"><code><span class="comment">// * This file is part of the uutils coreutils package.
122123
// *
123124
// * (c) 2014 T. Jameson Little &lt;t.jameson.little@gmail.com&gt;
@@ -172,6 +173,7 @@
172173
<span class="macro">writeln!</span>(factors_buffer, <span class="string">&quot;{}:{}&quot;</span>, x, factor(x))<span class="question-mark">?</span>;
173174
}
174175
w.write_all(factors_buffer.as_bytes())<span class="question-mark">?</span>;
176+
w.flush()<span class="question-mark">?</span>;
175177
<span class="prelude-val">Ok</span>(())
176178
})
177179
}

dev/src/uu_mv/mv.rs.html

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,8 @@
588588
<a href="#588" id="588">588</a>
589589
<a href="#589" id="589">589</a>
590590
<a href="#590" id="590">590</a>
591+
<a href="#591" id="591">591</a>
592+
<a href="#592" id="592">592</a>
591593
</pre><pre class="rust"><code><span class="comment">// This file is part of the uutils coreutils package.
592594
//
593595
// (c) Orvar Segerström &lt;orvarsegerstrom@gmail.com&gt;
@@ -614,7 +616,7 @@
614616
<span class="kw">use </span>std::path::{Path, PathBuf};
615617
<span class="kw">use </span>uucore::backup_control::{<span class="self">self</span>, BackupMode};
616618
<span class="kw">use </span>uucore::display::Quotable;
617-
<span class="kw">use </span>uucore::error::{FromIo, UError, UResult, USimpleError, UUsageError};
619+
<span class="kw">use </span>uucore::error::{set_exit_code, FromIo, UError, UResult, USimpleError, UUsageError};
618620
<span class="kw">use </span>uucore::{format_usage, help_about, help_usage, prompt_yes, show};
619621

620622
<span class="kw">use </span>fs_extra::dir::{
@@ -968,21 +970,23 @@
968970
}
969971
}
970972

971-
<span class="kw">let </span>rename_result = rename(sourcepath, <span class="kw-2">&amp;</span>targetpath, b, multi_progress.as_ref())
972-
.map_err_context(|| {
973-
<span class="macro">format!</span>(
974-
<span class="string">&quot;cannot move {} to {}&quot;</span>,
975-
sourcepath.quote(),
976-
targetpath.quote()
977-
)
978-
});
979-
980-
<span class="kw">if let </span><span class="prelude-val">Err</span>(e) = rename_result {
981-
<span class="kw">match </span>multi_progress {
982-
<span class="prelude-val">Some</span>(<span class="kw-2">ref </span>pb) =&gt; pb.suspend(|| <span class="macro">show!</span>(e)),
983-
<span class="prelude-val">None </span>=&gt; <span class="macro">show!</span>(e),
984-
};
985-
};
973+
<span class="kw">match </span>rename(sourcepath, <span class="kw-2">&amp;</span>targetpath, b, multi_progress.as_ref()) {
974+
<span class="prelude-val">Err</span>(e) <span class="kw">if </span>e.to_string() == <span class="string">&quot;&quot; </span>=&gt; set_exit_code(<span class="number">1</span>),
975+
<span class="prelude-val">Err</span>(e) =&gt; {
976+
<span class="kw">let </span>e = e.map_err_context(|| {
977+
<span class="macro">format!</span>(
978+
<span class="string">&quot;cannot move {} to {}&quot;</span>,
979+
sourcepath.quote(),
980+
targetpath.quote()
981+
)
982+
});
983+
<span class="kw">match </span>multi_progress {
984+
<span class="prelude-val">Some</span>(<span class="kw-2">ref </span>pb) =&gt; pb.suspend(|| <span class="macro">show!</span>(e)),
985+
<span class="prelude-val">None </span>=&gt; <span class="macro">show!</span>(e),
986+
};
987+
}
988+
<span class="prelude-val">Ok</span>(()) =&gt; (),
989+
}
986990

987991
<span class="kw">if let </span><span class="prelude-val">Some</span>(<span class="kw-2">ref </span>pb) = count_progress {
988992
pb.inc(<span class="number">1</span>);

dev/src/uu_runcon/runcon.rs.html

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -408,23 +408,14 @@
408408
<a href="#408" id="408">408</a>
409409
<a href="#409" id="409">409</a>
410410
<a href="#410" id="410">410</a>
411-
<a href="#411" id="411">411</a>
412-
<a href="#412" id="412">412</a>
413-
<a href="#413" id="413">413</a>
414-
<a href="#414" id="414">414</a>
415-
<a href="#415" id="415">415</a>
416-
<a href="#416" id="416">416</a>
417-
<a href="#417" id="417">417</a>
418-
<a href="#418" id="418">418</a>
419-
<a href="#419" id="419">419</a>
420411
</pre><pre class="rust"><code><span class="comment">// spell-checker:ignore (vars) RFILE
421412

422413
</span><span class="kw">use </span>clap::builder::ValueParser;
423414
<span class="kw">use </span>uucore::error::{UResult, UUsageError};
424415

425416
<span class="kw">use </span>clap::{crate_version, Arg, ArgAction, Command};
426417
<span class="kw">use </span>selinux::{OpaqueSecurityContext, SecurityClass, SecurityContext};
427-
<span class="kw">use </span>uucore::format_usage;
418+
<span class="kw">use </span>uucore::{format_usage, help_about, help_section, help_usage};
428419

429420
<span class="kw">use </span>std::borrow::Cow;
430421
<span class="kw">use </span>std::ffi::{CStr, CString, OsStr, OsString};
@@ -437,18 +428,9 @@
437428
<span class="kw">use </span>errors::error_exit_status;
438429
<span class="kw">use </span>errors::{Error, <span class="prelude-ty">Result</span>, RunconError};
439430

440-
<span class="kw">const </span>ABOUT: <span class="kw-2">&amp;</span>str = <span class="string">&quot;Run command with specified security context.&quot;</span>;
441-
<span class="kw">const </span>USAGE: <span class="kw-2">&amp;</span>str = <span class="string">&quot;\
442-
{} [CONTEXT COMMAND [ARG...]]
443-
{} [-c] [-u USER] [-r ROLE] [-t TYPE] [-l RANGE] COMMAND [ARG...]&quot;</span>;
444-
<span class="kw">const </span>DESCRIPTION: <span class="kw-2">&amp;</span>str = <span class="string">&quot;Run COMMAND with completely-specified CONTEXT, or with current or \
445-
transitioned security context modified by one or more of \
446-
LEVEL, ROLE, TYPE, and USER.\n\n\
447-
If none of --compute, --type, --user, --role or --range is specified, \
448-
then the first argument is used as the complete context.\n\n\
449-
Note that only carefully-chosen contexts are likely to successfully run.\n\n\
450-
With neither CONTEXT nor COMMAND are specified, \
451-
then this prints the current security context.&quot;</span>;
431+
<span class="kw">const </span>ABOUT: <span class="kw-2">&amp;</span>str = <span class="macro">help_about!</span>(<span class="string">&quot;runcon.md&quot;</span>);
432+
<span class="kw">const </span>USAGE: <span class="kw-2">&amp;</span>str = <span class="macro">help_usage!</span>(<span class="string">&quot;runcon.md&quot;</span>);
433+
<span class="kw">const </span>DESCRIPTION: <span class="kw-2">&amp;</span>str = <span class="macro">help_section!</span>(<span class="string">&quot;after help&quot;</span>, <span class="string">&quot;runcon.md&quot;</span>);
452434

453435
<span class="kw">pub mod </span>options {
454436
<span class="kw">pub const </span>COMPUTE: <span class="kw-2">&amp;</span>str = <span class="string">&quot;compute&quot;</span>;

dev/src/uu_seq/seq.rs.html

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -356,14 +356,10 @@
356356
<a href="#356" id="356">356</a>
357357
<a href="#357" id="357">357</a>
358358
<a href="#358" id="358">358</a>
359-
<a href="#359" id="359">359</a>
360-
<a href="#360" id="360">360</a>
361-
<a href="#361" id="361">361</a>
362359
</pre><pre class="rust"><code><span class="comment">// * This file is part of the uutils coreutils package.
363360
// *
364361
// * For the full copyright and license information, please view the LICENSE
365362
// * file that was distributed with this source code.
366-
// TODO: Support -f flag
367363
// spell-checker:ignore (ToDO) istr chiter argptr ilen extendedbigdecimal extendedbigint numberparse
368364
</span><span class="kw">use </span>std::io::{stdout, ErrorKind, Write};
369365
<span class="kw">use </span>std::process::exit;
@@ -373,9 +369,9 @@
373369

374370
<span class="kw">use </span>uucore::error::FromIo;
375371
<span class="kw">use </span>uucore::error::UResult;
376-
<span class="kw">use </span>uucore::format_usage;
377372
<span class="kw">use </span>uucore::memo::printf;
378373
<span class="kw">use </span>uucore::show;
374+
<span class="kw">use </span>uucore::{format_usage, help_about, help_usage};
379375

380376
<span class="kw">mod </span>error;
381377
<span class="kw">mod </span>extendedbigdecimal;
@@ -388,17 +384,15 @@
388384
<span class="kw">use </span><span class="kw">crate</span>::number::Number;
389385
<span class="kw">use </span><span class="kw">crate</span>::number::PreciseNumber;
390386

391-
<span class="kw">static </span>ABOUT: <span class="kw-2">&amp;</span>str = <span class="string">&quot;Display numbers from FIRST to LAST, in steps of INCREMENT.&quot;</span>;
392-
<span class="kw">const </span>USAGE: <span class="kw-2">&amp;</span>str = <span class="string">&quot;\
393-
{} [OPTION]... LAST
394-
{} [OPTION]... FIRST LAST
395-
{} [OPTION]... FIRST INCREMENT LAST&quot;</span>;
396-
<span class="kw">static </span>OPT_SEPARATOR: <span class="kw-2">&amp;</span>str = <span class="string">&quot;separator&quot;</span>;
397-
<span class="kw">static </span>OPT_TERMINATOR: <span class="kw-2">&amp;</span>str = <span class="string">&quot;terminator&quot;</span>;
398-
<span class="kw">static </span>OPT_WIDTHS: <span class="kw-2">&amp;</span>str = <span class="string">&quot;widths&quot;</span>;
399-
<span class="kw">static </span>OPT_FORMAT: <span class="kw-2">&amp;</span>str = <span class="string">&quot;format&quot;</span>;
387+
<span class="kw">const </span>ABOUT: <span class="kw-2">&amp;</span>str = <span class="macro">help_about!</span>(<span class="string">&quot;seq.md&quot;</span>);
388+
<span class="kw">const </span>USAGE: <span class="kw-2">&amp;</span>str = <span class="macro">help_usage!</span>(<span class="string">&quot;seq.md&quot;</span>);
400389

401-
<span class="kw">static </span>ARG_NUMBERS: <span class="kw-2">&amp;</span>str = <span class="string">&quot;numbers&quot;</span>;
390+
<span class="kw">const </span>OPT_SEPARATOR: <span class="kw-2">&amp;</span>str = <span class="string">&quot;separator&quot;</span>;
391+
<span class="kw">const </span>OPT_TERMINATOR: <span class="kw-2">&amp;</span>str = <span class="string">&quot;terminator&quot;</span>;
392+
<span class="kw">const </span>OPT_WIDTHS: <span class="kw-2">&amp;</span>str = <span class="string">&quot;widths&quot;</span>;
393+
<span class="kw">const </span>OPT_FORMAT: <span class="kw-2">&amp;</span>str = <span class="string">&quot;format&quot;</span>;
394+
395+
<span class="kw">const </span>ARG_NUMBERS: <span class="kw-2">&amp;</span>str = <span class="string">&quot;numbers&quot;</span>;
402396

403397
<span class="attr">#[derive(Clone)]
404398
</span><span class="kw">struct </span>SeqOptions&lt;<span class="lifetime">&#39;a</span>&gt; {

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`."><title>uu_app in uu_factor - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.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-a2c9cd1067f8b328.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-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../static.files/ayu-be46fdc453a55015.css"><script src="../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-98a684e84ae5b08b.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-7b819b6101059cd0.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" 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#99-120">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub fn uu_app() -&gt; Command</code></pre></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.69.0 (84c898d65 2023-04-16)" data-search-js="search-8a59a8356673ec1f.js" data-settings-js="settings-f0c5c39777a9a2f6.js" data-settings-css="settings-0bcba95ff279c1db.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`."><title>uu_app in uu_factor - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.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-a2c9cd1067f8b328.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-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../static.files/ayu-be46fdc453a55015.css"><script src="../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-98a684e84ae5b08b.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-7b819b6101059cd0.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" 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#100-121">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub fn uu_app() -&gt; Command</code></pre></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.69.0 (84c898d65 2023-04-16)" data-search-js="search-8a59a8356673ec1f.js" data-settings-js="settings-f0c5c39777a9a2f6.js" data-settings-css="settings-0bcba95ff279c1db.css" ></div></body></html>

0 commit comments

Comments
 (0)