Commit graph

3764 commits

Author SHA1 Message Date
Cheng-Hao
3640a90d9f fmt: move help strings to markdown file 2023-02-24 00:44:02 -08:00
Sylvestre Ledru
872f2bd794
Merge pull request #4429 from chenchiii/realpath-move-help-strings-to-md-file
realpath: move help strings to markdown file
2023-02-24 09:00:24 +01:00
Chen Chi
93e1760bd3 realpath: move help strings to markdown file 2023-02-23 22:49:04 -08:00
Jeffrey Finkelstein
b9003d19ed dd: move dd_out() function up to module level
Move the `dd_out()` function out of the `impl Output` and up to the
module level, renaming it to `dd_copy()`. This change aligns it with
the pattern set by `std::io::copy()`, which similarly takes an input
reader and an output writer.

This does not change the behavior of `dd`, just the code organization
to make it more closely match the idioms in the Rust standard library.
2023-02-23 21:17:19 -05:00
Jeffrey Finkelstein
3faf64280d dd: move finalize() function to module level
Move the `finalize()` function out of the `impl Output` block and up
to the module level so that it can be accessed by other module-level
functions.
2023-02-23 21:06:38 -05:00
Sylvestre Ledru
c99accc85f
Merge pull request #4410 from dmatos2012/chmod-override-quiet-verbose-opts
chmod: allow verbose and quiet flags to be used more than once
2023-02-23 22:03:39 +01:00
Sylvestre Ledru
1ab1035b40
Merge pull request #4426 from papparapa/tail-move-help-strings-md-file
tail: move help strings to markdown file
2023-02-23 21:56:39 +01:00
Sylvestre Ledru
fb72641ff2
Merge pull request #4425 from papparapa/tee-move-help-strings-to-md-file
tee: move help strings to markdown file
2023-02-23 21:50:16 +01:00
Sylvestre Ledru
2ea050c8a9
Merge pull request #4424 from jhowww/ln-move-help-strings-to-md-file
ln: move help strings to markdown file
2023-02-23 21:48:39 +01:00
Sylvestre Ledru
f3fe6cf84b
Merge pull request #4423 from jhowww/link-move-help-strings-to-md-file
link: move help strings to markdown file
2023-02-23 21:46:31 +01:00
David Matos
d9a21ff8f0 chmod: allow verbose and quiet flags to be used more than once 2023-02-23 20:21:38 +01:00
Koki Ueha
58dae0a36d tail: move help strings to markdown file 2023-02-23 12:37:01 +00:00
Koki Ueha
c3817e5359 tee: move help strings to markdown file 2023-02-23 12:17:00 +00:00
Terts Diepraam
3554565c82
Merge pull request #4356 from howjmay/cksum-a
cksum: implement -a
2023-02-23 12:18:21 +01:00
Cheng-Hao
79ee0dd58d ln: move help strings to markdown file 2023-02-22 23:55:51 -08:00
Cheng-Hao
0c4bde342c link: move help strings to markdown file 2023-02-22 23:14:54 -08:00
Chen Chi
e54c0063b0 shuf: move help strings to markdown file 2023-02-22 21:01:38 -08:00
Yang Hau
b1d4951c34 add ALGORITHM_HELP_DESC 2023-02-23 12:06:24 +08:00
Sylvestre Ledru
41018859bb
Merge pull request #4365 from kylemanna/km/fix-install-directory-chown
install: add missing directory chown
2023-02-22 21:49:22 +01:00
Sylvestre Ledru
d3395b5855
Merge pull request #4412 from jhowww/rmdir-move-help-strings-to-md-file
rmdir: move help strings to markdown file
2023-02-22 21:05:09 +01:00
Sylvestre Ledru
ea2100a64a
Merge pull request #4415 from papparapa/nohup-move-help-strings-to-md-file
nohup: move help strings to markdown file
2023-02-22 21:04:33 +01:00
Sylvestre Ledru
257e6ea681
Merge pull request #4413 from jhowww/rm-move-help-strings-to-md-file
rm: move help strings to markdown file
2023-02-22 21:03:46 +01:00
zleyyij
a24da1d575
basenc: Move strings to markdown file (#4417)
basenc: moved help strings to markdown file
2023-02-22 21:02:39 +01:00
zleyyij
b70131f148
arch: move help strings to a markdown file (#4373)
Co-authored-by: zleyyij <zleyyi@users.noreply.github.com>
2023-02-22 16:50:27 +01:00
papparapa
29a25a6c85
od: move help strings to markdown file (#4406)
* od: move help strings to markdown file

* od: fix the commented points
2023-02-22 16:44:55 +01:00
Terts Diepraam
ed30869b45 fix spell checker error in mkdir.md 2023-02-22 16:23:27 +01:00
Koki Ueha
52902f6e99 nohup: move help strings to markdown file 2023-02-22 10:41:49 +00:00
Terts Diepraam
60d2df56de
Merge pull request #4164 from jfinkels/dd-fifo-seek
dd: allow skipping and seeking in FIFOs
2023-02-22 10:38:45 +01:00
Terts Diepraam
8448d45dcf
Merge pull request #4411 from chenchiii/sleep-move-help-strings-to-md-file
sleep: move help strings to markdown file
2023-02-22 10:29:43 +01:00
Terts Diepraam
33c2c7d1c0
Merge pull request #4403 from jhowww/mkdir-move-help-strings-to-md-file
mkdir: move help strings to markdown file
2023-02-22 10:27:23 +01:00
Cheng-Hao
4cbf9a6398 rm: move help strings to markdown file 2023-02-21 18:50:47 -08:00
Cheng-Hao
ab5d0b6b9d rmdir: move help strings to markdown file 2023-02-21 18:28:35 -08:00
Chen Chi
ddd40fda6b sleep: move help strings to markdown file 2023-02-21 15:56:52 -08:00
Guilherme A. de Souza
7d7b9eb49a
Migrate from atty to is-terminal (#4382) 2023-02-21 21:52:18 +01:00
Cheng-Hao
e6fec39db1 mkdir: update markdown naming for consistency 2023-02-21 11:05:35 -08:00
papparapa
4e7ae2d46a
du: move help strings to markdown file (#4384) 2023-02-21 16:51:59 +01:00
Yang Hau
9322580967 Add checksum algorithm abstractions 2023-02-21 21:14:58 +08:00
Cheng-Hao
7cfeba0d22 mkdir: move help strings to markdown file 2023-02-20 16:29:20 -08:00
David Matos
dd4299c32e chmod: supress verbose output when not verbose 2023-02-20 22:18:07 +01:00
Terts Diepraam
cc0a77d357
Merge pull request #4395 from papparapa/kill-move-help-strings-to-md-file
kill: move help strings to markdown file
2023-02-20 14:16:42 +01:00
Koki Ueha
9bf9bba7c3 kill: move help strings to markdown file 2023-02-20 11:56:39 +00:00
Koki Ueha
e0470c0294 tac: move help strings to markdown file 2023-02-20 11:30:33 +00:00
Kyle Manna
05db5f7442 install: address merge request feedback
* Explicitly handle Err() in match.
* Move metdata functions deeper into `chown_optional_user_group()`.
* Add `ChownFailed` to propagate errors.
* Use `show_if_err!()` to wrap `chown_optional_user_group`.
* Simplify chown verbose message handling.
2023-02-19 11:47:45 -06:00
Koki Ueha
044f3d3a43 yes: move help strings to markdown file 2023-02-19 14:54:33 +00:00
Sylvestre Ledru
f77a44df8b
Merge pull request #4385 from cakebaker/uucore_procs_help_about
uucore_procs: extract "about" and "usage" info from new help structure
2023-02-19 11:47:18 +01:00
Yang Hau
109553436d add function profile 2023-02-19 18:09:34 +08:00
Kyle Manna
376f4d90ef install: add tests for invalid owner and group
* Move the user and group resolution to the behavior decoding instead of
  re-running on every file/directory creation.  Simplifies code.
* Update error output to match GNU coreutils.
* Add tests to verify invalid owner and group.
2023-02-18 22:46:12 -06:00
Kyle Manna
5876cd2581 install: add missing directory chown
* Re-factor the copy function chown into a function that can be re-used.
* Fix bug where the group overwrote the user.
* Add chown compatibility to follow GNU coreutils.
* Reduce two chown calls to a single syscall only when needed.
* Fixes #4361
2023-02-18 22:46:12 -06:00
Kyle Manna
7aa7f219a0 install: fix issue #4360 with bad target directory permissions
* Correct bug that set the last directory to the mode the file should
  have been set to.
* Add unit test to verify correct functionality.
2023-02-18 22:32:31 -06:00
Jeffrey Finkelstein
c52647a632 dd: add support for skipping in input FIFO
For example, `dd skip=1 if=fifo` will now work.
2023-02-18 21:24:16 +01:00