1
Fork 0
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:
Joshua Miller 2017-01-07 23:16:32 -06:00
parent 62d5a6bbc8
commit 133934f7cf
5 changed files with 374 additions and 109 deletions

View file

@ -235,6 +235,9 @@ tempdir="*"
unindent="*"
lazy_static = "*"
[target.'cfg(unix)'.dev-dependencies]
unix_socket = "*"
[[bin]]
name = "uutils"
path = "src/uutils/uutils.rs"