Skip to content

Commit 7ee05d7

Browse files
committed
deploy: f0e8d44
1 parent a5050e4 commit 7ee05d7

File tree

11 files changed

+52
-14
lines changed

11 files changed

+52
-14
lines changed

dev/src/uu_mktemp/mktemp.rs.html

+15-1
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,13 @@
582582
<a href="#582" id="582">582</a>
583583
<a href="#583" id="583">583</a>
584584
<a href="#584" id="584">584</a>
585+
<a href="#585" id="585">585</a>
586+
<a href="#586" id="586">586</a>
587+
<a href="#587" id="587">587</a>
588+
<a href="#588" id="588">588</a>
589+
<a href="#589" id="589">589</a>
590+
<a href="#590" id="590">590</a>
591+
<a href="#591" id="591">591</a>
585592
</pre><pre class="rust"><code><span class="comment">// This file is part of the uutils coreutils package.
586593
//
587594
// (c) Sunrin SHIMURA
@@ -775,7 +782,14 @@
775782
(tmpdir, template.to_string())
776783
}
777784
<span class="prelude-val">Some</span>(template) =&gt; {
778-
<span class="kw">let </span>tmpdir = matches.get_one::&lt;String&gt;(OPT_TMPDIR).map(String::from);
785+
<span class="kw">let </span>tmpdir = <span class="kw">if </span>matches.contains_id(OPT_TMPDIR) {
786+
matches.get_one::&lt;String&gt;(OPT_TMPDIR).map(String::from)
787+
} <span class="kw">else if </span>matches.get_flag(OPT_T) {
788+
<span class="comment">// mktemp -t foo.xxx should export in TMPDIR
789+
</span><span class="prelude-val">Some</span>(env::temp_dir().display().to_string())
790+
} <span class="kw">else </span>{
791+
matches.get_one::&lt;String&gt;(OPT_TMPDIR).map(String::from)
792+
};
779793
(tmpdir, template.to_string())
780794
}
781795
}

dev/src/uu_more/more.rs.html

+20
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,16 @@
513513
<a href="#513" id="513">513</a>
514514
<a href="#514" id="514">514</a>
515515
<a href="#515" id="515">515</a>
516+
<a href="#516" id="516">516</a>
517+
<a href="#517" id="517">517</a>
518+
<a href="#518" id="518">518</a>
519+
<a href="#519" id="519">519</a>
520+
<a href="#520" id="520">520</a>
521+
<a href="#521" id="521">521</a>
522+
<a href="#522" id="522">522</a>
523+
<a href="#523" id="523">523</a>
524+
<a href="#524" id="524">524</a>
525+
<a href="#525" id="525">525</a>
516526
</pre><pre class="rust"><code><span class="comment">// * This file is part of the uutils coreutils package.
517527
// *
518528
// * (c) Martin Kysel &lt;code@martinkysel.com&gt;
@@ -772,6 +782,11 @@
772782
modifiers: KeyModifiers::NONE,
773783
..
774784
})
785+
| Event::Key(KeyEvent {
786+
code: KeyCode::PageDown,
787+
modifiers: KeyModifiers::NONE,
788+
..
789+
})
775790
| Event::Key(KeyEvent {
776791
code: KeyCode::Char(<span class="string">&#39; &#39;</span>),
777792
modifiers: KeyModifiers::NONE,
@@ -787,6 +802,11 @@
787802
code: KeyCode::Up,
788803
modifiers: KeyModifiers::NONE,
789804
..
805+
})
806+
| Event::Key(KeyEvent {
807+
code: KeyCode::PageUp,
808+
modifiers: KeyModifiers::NONE,
809+
..
790810
}) =&gt; {
791811
pager.page_up();
792812
}

dev/src/uu_rm/rm.rs.html

+9-5
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,8 @@
564564
<a href="#564" id="564">564</a>
565565
<a href="#565" id="565">565</a>
566566
<a href="#566" id="566">566</a>
567+
<a href="#567" id="567">567</a>
568+
<a href="#568" id="568">568</a>
567569
</pre><pre class="rust"><code><span class="comment">// * This file is part of the uutils coreutils package.
568570
// *
569571
// * (c) Alex Lyon &lt;arcterus@mail.com&gt;
@@ -573,8 +575,9 @@
573575

574576
// spell-checker:ignore (path) eacces
575577

576-
</span><span class="kw">use </span>clap::{crate_version, parser::ValueSource, Arg, ArgAction, Command};
578+
</span><span class="kw">use </span>clap::{builder::ValueParser, crate_version, parser::ValueSource, Arg, ArgAction, Command};
577579
<span class="kw">use </span>std::collections::VecDeque;
580+
<span class="kw">use </span>std::ffi::{OsStr, OsString};
578581
<span class="kw">use </span>std::fs::{<span class="self">self</span>, File, Metadata};
579582
<span class="kw">use </span>std::io::ErrorKind;
580583
<span class="kw">use </span>std::ops::BitOr;
@@ -625,9 +628,9 @@
625628
</span><span class="kw">pub fn </span>uumain(args: <span class="kw">impl </span>uucore::Args) -&gt; UResult&lt;()&gt; {
626629
<span class="kw">let </span>matches = uu_app().after_help(AFTER_HELP).try_get_matches_from(args)<span class="question-mark">?</span>;
627630

628-
<span class="kw">let </span>files: Vec&lt;String&gt; = matches
629-
.get_many::&lt;String&gt;(ARG_FILES)
630-
.map(|v| v.map(ToString::to_string).collect())
631+
<span class="kw">let </span>files: Vec&lt;<span class="kw-2">&amp;</span>OsStr&gt; = matches
632+
.get_many::&lt;OsString&gt;(ARG_FILES)
633+
.map(|v| v.map(OsString::as_os_str).collect())
631634
.unwrap_or_default();
632635

633636
<span class="kw">let </span>force_flag = matches.get_flag(OPT_FORCE);
@@ -797,13 +800,14 @@
797800
.arg(
798801
Arg::new(ARG_FILES)
799802
.action(ArgAction::Append)
803+
.value_parser(ValueParser::os_string())
800804
.num_args(<span class="number">1</span>..)
801805
.value_hint(clap::ValueHint::AnyPath),
802806
)
803807
}
804808

805809
<span class="comment">// TODO: implement one-file-system (this may get partially implemented in walkdir)
806-
</span><span class="kw">fn </span>remove(files: <span class="kw-2">&amp;</span>[String], options: <span class="kw-2">&amp;</span>Options) -&gt; bool {
810+
</span><span class="kw">fn </span>remove(files: <span class="kw-2">&amp;</span>[<span class="kw-2">&amp;</span>OsStr], options: <span class="kw-2">&amp;</span>Options) -&gt; bool {
807811
<span class="kw">let </span><span class="kw-2">mut </span>had_err = <span class="bool-val">false</span>;
808812

809813
<span class="kw">for </span>filename <span class="kw">in </span>files {

dev/uu_mktemp/fn.dry_exec.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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 `dry_exec` fn in crate `uu_mktemp`."><title>dry_exec in uu_mktemp - 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_mktemp/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_mktemp/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_mktemp</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_mktemp</a>::<wbr><a class="fn" href="#">dry_exec</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_mktemp/mktemp.rs.html#460-482">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 dry_exec(
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 `dry_exec` fn in crate `uu_mktemp`."><title>dry_exec in uu_mktemp - 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_mktemp/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_mktemp/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_mktemp</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_mktemp</a>::<wbr><a class="fn" href="#">dry_exec</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_mktemp/mktemp.rs.html#467-489">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 dry_exec(
22
tmpdir: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
33
prefix: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
44
rand: <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.usize.html">usize</a>,

0 commit comments

Comments
 (0)