mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-30 12:37:49 +00:00
add cat support for unix domain sockets
- adds conditional supports for unix domain sockets - adds unix domain socket test - adds Results to functions, removing unwraps - uutils `cat` used to panic on broken stdout pipes (e.g. `cat /dev/zero | head -c1`). this is fixed in this PR - updated to exit 0 on success, and 1 if an error occurs. - adds docstrings - adds an error log on printing a directory - adds categorization of other filetypes for extensible differentiation of behaviors - adds OutputOptions struct to replace params for extensibility - adds correct status code on exit
This commit is contained in:
parent
62d5a6bbc8
commit
133934f7cf
5 changed files with 374 additions and 109 deletions
|
@ -235,6 +235,9 @@ tempdir="*"
|
|||
unindent="*"
|
||||
lazy_static = "*"
|
||||
|
||||
[target.'cfg(unix)'.dev-dependencies]
|
||||
unix_socket = "*"
|
||||
|
||||
[[bin]]
|
||||
name = "uutils"
|
||||
path = "src/uutils/uutils.rs"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue