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
bbd74bb957
Merge pull request #3159 from crazystylus/expr-missing-help-docs
...
`expr`: fix missing help in user docs
2022-02-19 11:04:14 +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
Kartik Sharma
c523aa43f2
Fixes missing help on expr
user docs.
...
- Configured clap to take crate version, so version is now visible in docs.
- Added ABOUT string from expr help output, so about section is getting rendered in docs.
- Added USAGE section.
- Added HELP section for each args.
2022-02-19 13:47:16 +05:30
Terts Diepraam
4719717e33
Merge pull request #3128 from jfinkels/dd-zero-multiplier-regression
...
dd: remove spurious zero multiplier warning
2022-02-19 01:37:33 +01:00
Terts Diepraam
625c771d14
Merge pull request #3112 from ndd7xv/err_conv-to-result
...
uucore(memo): replace err_conv with result
2022-02-19 01:29:07 +01:00
Terts Diepraam
69a94e412b
docs: use rust libraries for downloading and unzipping tldr
2022-02-19 01:27:19 +01:00
Sylvestre Ledru
3da6be1829
Merge pull request #3153 from rivy/maint
...
CICD fixes/maintainence
2022-02-18 09:58:15 +01:00
Terts Diepraam
a3d52f3863
Merge pull request #3071 from hbina/hbina-ls-propagate-write-errors
...
ls: Propagate (almost) all write errors up
2022-02-18 08:41:00 +01:00
ndd7xv
f04f22b012
uucore(memo): refactor error propogation with new SubError enum
2022-02-17 22:43:30 -05:00
ndd7xv
1e12c46c24
uucore(memo): replace err_conv with result
2022-02-17 22:43:30 -05:00
Hanif Ariffin
8acdfdc553
Merge branch 'main' of github.com:uutils/coreutils into hbina-ls-propagate-write-errors
...
Signed-off-by: Hanif Ariffin <hanif.ariffin.4326@gmail.com>
2022-02-18 09:48:20 +08:00
Jeffrey Finkelstein
89f428b44f
dd: remove spurious zero multiplier warning
...
Fix a bug in which `dd` was inappropriately showing a warning about a
"0x" multiplier when there was no "x" character in the argument.
2022-02-17 19:06:05 -05:00
Terts Diepraam
e1a611374a
Merge pull request #2981 from jfinkels/split-hex-numbers
...
split: add support for -x option (hex suffixes)
2022-02-17 23:20:58 +01:00
Terts Diepraam
b082b98b7c
Merge pull request #3056 from palaster/fix-issue-2870
...
seq: Eliminated special handling of -0.0
2022-02-17 23:18:54 +01:00
Roy Ivy III
d6424bb354
maint/util ~ remove extra/redundant factor tests for 'debug' builds
...
- avoids "Terminated" timeout errors when using longer running 'debug' `factor`
2022-02-17 15:14:52 -06:00
Roy Ivy III
0af2c9bafb
maint/CICD ~ (GnuTests) display sub-step test comparison failures more prominently
2022-02-17 15:14:51 -06:00
Terts Diepraam
f57e3470ae
docs: add examples from tldr-pages
2022-02-17 19:35:56 +01:00
Sylvestre Ledru
299fe4e22a
Merge pull request #3151 from tertsdiepraam/docs-test-coverage
...
README: add link to GNU tests page in documentation
2022-02-17 10:29:31 +01:00
Terts Diepraam
f15dd8f599
README: add link to GNU tests page in documentation
2022-02-17 10:28:06 +01:00
Sylvestre Ledru
8e79b7fcb8
Merge pull request #3141 from jfinkels/dd-modules
...
dd: move unit tests into dd.rs and test_dd.rs
2022-02-17 10:15:07 +01:00
Terts Diepraam
9e847c33e3
Merge pull request #3021 from iovanom/dd-multi-status-options
...
dd: allow multiple instances of arguments
2022-02-16 12:56:30 +01:00
Terts Diepraam
cb54e76151
Merge pull request #3145 from TheBorrowCheckers/cat-cleanup
...
cat: minor cleanups
2022-02-16 12:52:54 +01:00
Jeffrey Finkelstein
ba1ce7179b
dd: move unit tests into dd.rs and test_dd.rs
...
Clean up unit tests in the `dd` crate to make them easier to
manage. This commit does a few things.
* move test cases that test the complete functionality of the `dd`
program from the `dd_unit_tests` module up to the
`tests/by-util/test_dd.rs` module so that they can take advantage of
the testing framework and common testing tools provided by uutils,
* move test cases that test internal functions of the `dd`
implementation into the `tests` module within `dd.rs` so that they
live closer to the code they are testing,
* replace test cases defined by macros with test cases defined by
plain old functions to make the test cases easier to read at a
glance.
2022-02-15 21:50:48 -05:00
Jeffrey Finkelstein
e598bf0835
tests: add CmdResult::stdout_is_fixture_bytes()
...
Add helper method `CmdResult::stdout_is_fixture_bytes()`, which is
like `stdout_is_fixture()` but compares stdout to the raw bytes of a
given file instead of decoding the contents of the file to a UTF-8
string.
2022-02-15 21:50:48 -05:00
Michael Lohmann
3bbfe00791
cat: write_nonprint_to_end: be more explicit about printing '?'
2022-02-15 22:27:46 +01:00
Michael Lohmann
4676924532
cat: cat_path does not need to parse InputType for stdin itself
...
This type is already handled by get_input_type, so we can unify the handling
2022-02-15 22:27:46 +01:00
Michael Lohmann
34b18351e2
cat: cleanup write_tab_to_end duplication of logic
...
The logic for '\n' and '\r' about the number of written characters was duplicated
2022-02-15 22:16:02 +01:00
Sylvestre Ledru
67cee26abe
Merge pull request #3003 from tertsdiepraam/ls-fix-another-flaky-test
...
`ls`: fix flaky test `test_ls_io_errors`
2022-02-15 20:11:48 +01:00
Sylvestre Ledru
8d0ba50f26
Merge pull request #3144 from tertsdiepraam/docs-test-coverage
...
docs: fix url for full test report
2022-02-15 20:11:30 +01:00
Terts Diepraam
824c6041ab
docs: fix progress bar sizes for SKIP
2022-02-15 19:52:38 +01:00
Terts Diepraam
11e428d471
docs: fix url for full test report
2022-02-15 19:27:33 +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
Sylvestre Ledru
acc861541b
Merge pull request #3140 from DevSabb/fix-split-tests
...
fix failure in test_split
2022-02-15 10:22:30 +01:00
DevSabb
63fa3c81ed
fix failure in test_split
2022-02-14 20:41:58 -05:00
Sylvestre Ledru
155647f6a8
Merge pull request #3134 from tertsdiepraam/docs-test-coverage
...
docs: add page with test coverage
2022-02-14 20:54:49 +01:00
DevSabb
6d6371741a
include io-blksize parameter ( #3064 )
...
* include io-blksize parameter
* format changes for including io-blksize
Co-authored-by: DevSabb <devsabb@local>
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2022-02-14 19:47:18 +01:00
Terts Diepraam
ac11d8793e
docs: add page with test coverage
2022-02-13 23:14:13 +01:00
Terts Diepraam
477b40f1e5
shuf: correct execution phrase for --help
2022-02-13 21:58:48 +01:00
Terts Diepraam
4f7f4445cb
docs: allow for multiline usage
2022-02-13 21:45:43 +01:00
Kartik Sharma
6c1a655512
This commit removes empty line from USAGE string in src/uu/od/src/od.rs. ( #3074 )
...
This change is needed to fix missing USAGE section for `od` in user docs.
With reference to this issue
https://github.com/uutils/coreutils/issues/2991 , and missing USAGE
section from `od docs` at
https://uutils.github.io/coreutils-docs/user/utils/od.html , it was
found that the USAGE for od app was starts with an empty line and uudoc
only takes 1st line for using in USAGE section in docs.
This resulted in empty line in usage section for `od`
2022-02-13 21:39:11 +01:00
Terts Diepraam
351a56d3fd
Merge pull request #3133 from sylvestre/issue-3132
...
expr: Use chars().count() as we can have some multibytes chars
2022-02-13 17:48:37 +01:00
Jeffrey Finkelstein
a4955b4e06
split: add support for -x option (hex suffixes)
...
Add support for the `-x` command-line option to `split`. This option
causes `split` to produce filenames with hexadecimal suffixes instead
of the default alphabetic suffixes.
2022-02-13 11:18:37 -05:00
Jeffrey Finkelstein
494dc7ec57
split: add SuffixType::NumericHexadecimal
...
Add a `NumericHexadecimal` member to the `SuffixType` enum so that a
future commit can add support for hexadecimal filename suffixes to the
`split` program.
2022-02-13 11:18:37 -05:00
Jeffrey Finkelstein
7fbd805713
split: refactor to add SuffixType enum
...
Refactor the code to use a `SuffixType` enumeration with two members,
`Alphabetic` and `NumericDecimal`, representing the two currently
supported ways of producing filename suffixes. This prepares the code
to more easily support other formats, like numeric hexadecimal.
2022-02-13 11:18:37 -05:00
Sylvestre Ledru
7225fb6c24
expr: Use chars().count() as we can have some multibytes chars
...
Partially fixes #3132
Fixes one of the test of tests/misc/expr-multibyte
2022-02-13 14:19:25 +01:00
Terts Diepraam
1167d811d5
Merge pull request #2753 from sylvestre/gnu-locale
...
gnu/test: add the iso en_us locale to help with some tests
2022-02-13 12:59:33 +01:00
Terts Diepraam
85c4fb3981
Merge pull request #3129 from jfinkels/dd-partial-records
...
dd: correctly account for partial record written
2022-02-13 12:52:09 +01:00
Sylvestre Ledru
78e2fe6ad2
Merge pull request #3090 from rivy/maint.utils
...
maint ~ configuration and utility clean-up and maintenance
2022-02-13 09:55:37 +01:00