Otto Rottier
dab1b9ba1a
rustfmt src/uu/wc/src/wc.rs
...
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2020-05-04 07:45:30 +02:00
Roy Ivy III
30c14f1025
Merge pull request #1492 from sylvestre/test_printenv
...
test(printenv): add some tests
2020-05-03 15:15:43 -05:00
Roy Ivy III
f12c27a57d
Merge pull request #1487 from sylvestre/df-human
...
refactor and fix some `df` build and cosmetic issues
2020-05-03 15:15:14 -05:00
Roy Ivy III
23b49101c0
fix/df ~ fix build script for sub-crate builds
2020-05-03 14:54:57 -05:00
Roy Ivy III
81d85f398b
fix/df ~ missing windows imports
2020-05-03 14:54:57 -05:00
Roy Ivy III
091a356807
fix/df ~ correct number suffix display by using number_prefix PrefixNames::symbol()
2020-05-03 14:53:13 -05:00
Otto Rottier
e3bd6b6848
wc: Do not decode UTF8 when only counting bytes/newlines
2020-05-03 20:39:09 +02:00
Sylvestre Ledru
fc83024ebe
refactor(df): use number_prefix like 'ls' instead of doing the display by hand
2020-05-03 13:29:55 -05:00
Sylvestre Ledru
bee8ab744e
test(printenv): add some tests
2020-05-03 13:24:47 -05:00
Roy Ivy III
78dc71630c
Merge pull request #1490 from sylvestre/uname
...
Add `uname` test + doc update regarding testing
2020-05-03 13:00:21 -05:00
Roy Ivy III
eb1ba77de1
Merge pull request #1491 from sylvestre/date2
...
`date` refresh + added tests
2020-05-03 12:59:15 -05:00
Sylvestre Ledru
90de33d5d7
maint/df: relax the dependencies
2020-05-03 12:27:55 -05:00
Sylvestre Ledru
1f1edc5a33
test(date): add tests
2020-05-03 12:26:17 -05:00
Sylvestre Ledru
850bd9c32d
fix(date): fix the date
...
Date didn't work out of the box.
Refactor it a bit to match other programs
2020-05-03 12:26:17 -05:00
Sylvestre Ledru
dfb36897cc
docs(cargo): explain that platform specific tests aren't executed by default
2020-05-03 12:18:28 -05:00
Sylvestre Ledru
4c1774e918
test(uname): Add uname tests
2020-05-03 12:18:28 -05:00
Roy Ivy III
ecfb42ba6c
Merge pull request #1488 from sylvestre/df-path
...
feat(df): Add the support of path for df (eg, `df /boot`)
2020-05-03 12:16:39 -05:00
Roy Ivy III
2d5d0680d8
fix(df) ~ fix lint complaint (unused import)
2020-05-03 12:00:42 -05:00
Sylvestre Ledru
8d1f0edfc4
refact(df): follow the same directory pattern than the other software
2020-05-03 11:51:33 -05:00
Sylvestre Ledru
c85756e509
fix(df): Linux: Fix the mount path and type
2020-05-03 11:51:33 -05:00
Sylvestre Ledru
8f6770401d
feat(df): Add the support of path for df. ex: df /boot
2020-05-03 11:51:33 -05:00
Sylvestre Ledru
c5a26810cb
Merge pull request #1494 from rivy/add.make-tasks
...
Add/polish `cargo make` tasks
2020-05-03 18:14:27 +02:00
Roy Ivy III
78d4bb42e9
maint/build ~ add 'release' and 'debug' mode notations to tasks and help
2020-05-03 10:49:39 -05:00
Roy Ivy III
d752d9880b
maint/build ~ improve format and readability of (cargo make
) 'help' target
2020-05-03 09:23:31 -05:00
Roy Ivy III
d7b6626f70
maint/build ~ polish and add commentary for initialization workaround
2020-05-03 09:23:31 -05:00
Roy Ivy III
39cea3a159
maint/build ~ add 'action-spellcheck-codespell' cargo-make
target; prelim to a 'spellcheck' target
2020-05-03 09:23:31 -05:00
Roy Ivy III
f16e2261fc
maint/build ~ improve cargo make format
to include test formatting
2020-05-03 09:23:31 -05:00
Roy Ivy III
969964aade
maint/build ~ add cargo make
install/uninstall targets
2020-05-03 09:23:31 -05:00
Roy Ivy III
d5368d9491
maint/build ~ add 'uutil' task as alias to 'util' for least surprise
2020-05-03 09:23:31 -05:00
Sylvestre Ledru
cb61eae709
Merge pull request #1493 from rivy/fix.ci-coverage
...
Fix CI coverage
2020-05-03 10:56:40 +02:00
Roy Ivy III
18e8bb822b
maint/CICD ~ configure CodeCov to report but "allow-failure"
2020-05-02 23:26:37 -05:00
Roy Ivy III
7a64ad1ebc
maint/CICD ~ add commentary for 'Style' warning output => annotation conversions
2020-05-02 23:12:50 -05:00
Roy Ivy III
a57214fa10
maint/CICD ~ change 'Style' job to a more robust, "allow-failure"-type, state
...
## [why]
Compiler and clippy warnings will change over time. To avoid build failures due to some
updated allow/warn categories for more future rust versions, the tests using the
toolchain utilities are converted to a form which will always "pass" but will push any
errors/warnings to the GHA UI as annotations.
Additional build-breaking tests utilizing more stable tools (or local scripts) can be
added at a later date if/when desired.
This should prevent CI failures for already known-working builds.
2020-05-02 17:02:25 -05:00
Roy Ivy III
312d9b9543
maint/CICD ~ fix coverage build failures by pinning to known-working nightly toolchain
...
## [why]
Code coverage must currently use some unstable features in nightly rust builds. The
nightly builds are, by definition, unstable and subject to frequent breaking changes.
To prevent CI build breakage, the toolchain is pinned to a specific known working set.
Note: (maint!) this will require periodic review until code coverage is more fully
implemented/integrated into Rust and moved into the stable channel.
- refs: <https://github.com/mozilla/grcov/issues/427 >, <https://github.com/newsboat/newsboat/issues/916 >
2020-05-02 16:53:08 -05:00
Roy Ivy III
dfc0617a2e
maint/CICD ~ update x86_64-pc-windows-gnu build target to 'stable' (for use with rust v1.43.0+)
2020-05-02 16:44:36 -05:00
Sylvestre Ledru
6e8c901204
fix: typo fixes found by codespell
2020-05-01 23:36:33 +02:00
Sylvestre Ledru
df44af2321
Merge pull request #1486 from vladimyr/recursive-make
...
Use `$(MAKE)` variable for recursive invocations
2020-05-01 10:45:28 +02:00
Sylvestre Ledru
fbe7506fb3
Merge pull request #1483 from sylvestre/df
...
Implement df command
2020-04-29 09:17:17 +02:00
Sylvestre Ledru
2aed7cb035
fix(df): Fix Windows support
...
- add required handleapi feature for winapi crate
- remove unneeded 'unsafe' section
- remove unused import (GetDiskFreeSpaceExW)
- fix Windows df execution
Co-Authored-By: Roy Ivy III <rivy.dev@gmail.com>
2020-04-28 13:16:19 -05:00
Sylvestre Ledru
f9456e80c3
fix(df): Add support for freebsd
2020-04-28 13:11:22 -05:00
Sylvestre Ledru
8545f03e0f
fix(df): Improve MacOSX support
2020-04-28 13:11:21 -05:00
Sylvestre Ledru
dd1a212550
style(df): Fix warnings + cargo fmt
...
Co-Authored-By: Roy Ivy III <rivy.dev@gmail.com>
2020-04-28 13:11:04 -05:00
Sylvestre Ledru
d5228b5a64
feat(df) add 'df' uutil
2020-04-28 13:05:55 -05:00
Dario Vladovic
3f03e5fa3c
Use $(MAKE)
variable for recursive invocations
2020-04-28 05:11:19 +02:00
Roy Ivy III
f734d48405
Merge pull request #1485 from rivy/rf.features
...
feature reorganization and polish
2020-04-26 11:32:15 -05:00
Roy Ivy III
0ab6e6a19a
maint/CICD ~ refactor MacOS feature use (aline with feature reorg)
2020-04-25 01:57:21 -05:00
Roy Ivy III
f4c4d0e635
maint/build ~ feature reorganization and polish
...
.## [why]
Reorganizing and minor renaming of features within *Cargo.toml* will hopefully
help to place new utilities into the best feature set, encouraging the
"universal" / cross-platform aspect of the project.
"feat_require_..." sets are used to segregate utilities with restrictions limiting
cross-platform availability and are annotated with the reasons for the limitations.
2020-04-23 14:49:22 -05:00
Sylvestre Ledru
3a9fb490a9
Merge pull request #1451 from sylvestre/cargo-update
...
Relax the dependencies
2020-04-19 23:11:19 +02:00
Sylvestre Ledru
c756ca6f06
maint/dev ~ relax the dev-dependencies
2020-04-19 00:06:33 +02:00
Roy Ivy III
129331cbda
Merge pull request #1480 from rivy/fix.cargo-tree-bug
...
Fix `cargo tree` bug + CICD issues
2020-04-15 13:16:09 -05:00