Yuri Astrakhan
2d95850700
chore: manual inline formatting
...
Minor manual cleanup - inlined many format args. This makes the code a bit more readable, and helps spot a few inefficiencies and possible bugs. Note that `&foo` in a `format!` parameter results in a 6% extra performance cost, and does not get inlined by the compiler (yet).
2025-04-09 15:33:46 -04:00
Yuri Astrakhan
170831ed2b
chore: remove unneeded parens
...
Keeps code a bit more readable
2025-04-08 18:19:03 -04:00
Nicolas Boichat
5d53da9f3e
uudoc: Fix for edition 2024
...
This change is documented here: https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html
I'm... not sure to understand everything, but this change is what
`cargo fix --edition --features="uudoc" --allow-dirty`
suggests.
Fixes #7572 .
2025-03-25 12:16:28 +01:00
Sylvestre Ledru
a85539f530
Run cargo fmt on the tree
2025-03-24 21:33:12 +01:00
Jeffrey Finkelstein
faf3412019
Style fixes from cargo +nightly clippy
2025-02-22 10:11:01 -05:00
jovielarue
89d79753b1
Update uudoc to include development and code of conduct in SUMMARY and fix links in book
2024-12-29 13:02:35 -07:00
Daniel Hofstetter
865da0caad
uudoc,chcon: fix needless_lifetimes warnings
2024-11-29 10:47:14 +01:00
Daniel Hofstetter
f0b983ba8f
bin/coreutils: add --list to help output
2024-09-12 14:55:05 +02:00
n4n5
81de2be5ab
fix clippy src/
2024-06-30 16:27:00 +02:00
Terts Diepraam
b1ba249528
multicall: add --list to list all utils
2024-04-30 17:26:02 +02:00
Sylvestre Ledru
bf5b765cba
Remove the author copyright notices ( #5184 )
...
* Remove the author copyright notices
Rational:
* not maintained
* does not reflect reality
* don't provide any value (the info can be found in the git log)
* we don't have rules to update them
(ex: should you update it after one line, two lines, etc)
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-08-21 12:23:18 +02:00
Terts Diepraam
171f9d660c
docs: add platform support page in the docs
2023-08-19 18:19:12 +02:00
Sylvestre Ledru
83c8517142
coreutils multicall: the manpage subcommand doesn't display the right command
...
see https://manpages.debian.org/unstable/rust-coreutils/rust-coreutils.1.en.html
2023-07-17 22:46:34 +02:00
Sylvestre Ledru
9f38142522
add uuhelp to the ignore spell
2023-06-04 11:27:50 +02:00
Sylvestre Ledru
e3cb5a111d
Rename help_parser => uuhelp_parser
2023-06-04 09:46:59 +02:00
Sylvestre Ledru
caf9bfcadc
doc: show a warning when no tldr example
2023-05-08 17:48:23 +02:00
Sylvestre Ledru
f8d7bebed3
ignore some cognitive_complexity for now
2023-05-06 14:50:55 +02:00
Sylvestre Ledru
b33986de86
Merge pull request #4366 from BartMassey-upstream/name-weirdness
...
coreutils: fixed panic when multi-call binary has funny name
2023-04-28 09:27:05 +02:00
Daniel Hofstetter
3272d14fab
uudoc: fix clippy warnings
2023-04-21 10:14:44 +02:00
Daniel Hofstetter
658323184d
uudoc,uucore_procs: move md parsing to help_parser
2023-04-16 14:32:48 +02:00
Sylvestre Ledru
79d18ab656
generate manpages
2023-03-04 19:42:28 +01:00
Bart Massey
abc5cfb950
coreutils: fixed panic when multi-call binary has empty or non-UTF-8 name
...
The multi-call `coreutils` binary starts by trying to
convert its invocation path into a UTF-8 string, panicking
if this doesn't work.
This patch makes `coreutils` exit gracefully in this case.
2023-02-14 00:24:22 -08:00
Jeffrey Finkelstein
c6d9d7f11c
Clippy fixes
2023-02-13 21:33:42 -05:00
Sylvestre Ledru
c5728a61b4
fix some clippy warnings ( #4229 )
...
* fix some clippy warnings
* Fix the last two
2022-12-14 15:42:07 +01:00
Terts Diepraam
e155a5ea6d
uudoc: support after_help and read directly from markdown file
2022-11-29 22:54:41 +01:00
Terts Diepraam
42377626f6
docs: document extensions over GNU
...
docs: fix typos in extensions page
2022-11-11 00:44:44 +01:00
Terts Diepraam
ed6b4c8635
docs: fix usage string since clap 4
2022-10-15 22:30:52 +02:00
Sylvestre Ledru
23b0bb3da4
Merge pull request #3991 from tertsdiepraam/clap-4
...
Clap 4
2022-10-14 21:49:05 +02:00
Terts Diepraam
5c676ac268
docs: add installation page with package managers
2022-10-14 17:11:27 +02:00
Terts Diepraam
cbc8427419
uudoc: update to clap 4
2022-10-14 16:47:39 +02:00
Terts Diepraam
26309dc9d7
base{32, 64, enc}: update to clap 4
2022-10-13 16:22:24 +02:00
Daniel Hofstetter
9e8daf92dd
Replace deprecated value_of() with get_one()
2022-09-26 16:42:42 +02:00
Niyaz Nigmatullin
dc12639995
Fix completion with a clap update
2022-08-17 13:13:27 +03:00
Niyaz Nigmatullin
f4df7ea4a0
cargo +1.56.1 update
2022-08-17 13:13:27 +03:00
Daniel Hofstetter
07b218e55a
Replace possible_values() with value_parser()
2022-08-04 14:38:10 +02:00
Terts Diepraam
62d96db16b
docs: don't download the tldr archive ( #3415 )
...
The ureq dependency is causing compilation errors on various platforms (see #3184 , #3216 , #3375 ). Hence we remove that dependency and do not automatically download the archive anymore. Instead, we ask the user to download it separately when the archive is not found.
2022-04-17 21:33:51 +02:00
Terts Diepraam
f7d53889e8
Fix the platform icons not showing up in some browsers
2022-04-11 16:03:36 +02:00
Terts Diepraam
3c09c747dd
docs: show platforms for each util
2022-04-07 15:12:21 +02:00
Terts Diepraam
20212be4c8
fix clippy errors related to clap upgrade from 3.0.10 to 3.1.6
2022-03-17 22:46:56 +01:00
Terts Diepraam
722c5d268f
fix Rust 1.59 clippy lints
2022-02-25 09:39:48 +01:00
Terts Diepraam
53070141c1
all: add format_usage function ( #3139 )
...
This should correct the usage strings in both the `--help` and user documentation. Previously, sometimes the name of the utils did not show up correctly.
2022-02-21 17:14:03 +01:00
Sylvestre Ledru
be0b77e7a7
when help item has an \n, translate it to a <br />
...
example:
https://uutils.github.io/coreutils-docs/user/utils/ls.html / classify
2022-02-19 13:44:15 +01:00
Sylvestre Ledru
716444c7b1
user docs: move the examples after the options
2022-02-19 12:46:57 +01:00
Sylvestre Ledru
7870317178
Merge pull request #3152 from tertsdiepraam/docs-examples
...
docs: add examples from tldr-pages
2022-02-19 09:49:45 +01:00
Terts Diepraam
69a94e412b
docs: use rust libraries for downloading and unzipping tldr
2022-02-19 01:27:19 +01:00
Terts Diepraam
f57e3470ae
docs: add examples from tldr-pages
2022-02-17 19:35:56 +01:00
Sylvestre Ledru
65467ab317
Merge pull request #3137 from tertsdiepraam/docs-multiline-usage
...
docs: allow for multiline usage
2022-02-15 10:26:47 +01:00
Terts Diepraam
ac11d8793e
docs: add page with test coverage
2022-02-13 23:14:13 +01:00
Terts Diepraam
4f7f4445cb
docs: allow for multiline usage
2022-02-13 21:45:43 +01:00
Daniel Eades
4f8d1c5fcf
add additional lints
2022-01-31 20:40:47 +01:00