Crate rustutils_core

Source
Expand description

Multi-call binary for modern coreutils implemented in Rust, with a focus on simplicity.

Structs§

Arch
Print machine architecture.
Base64
Base64 encode or decode a file, or standard input, to standard output.
Basename
Print path with any leading directory components removed.
Cat
Concatenate files to standard output.
Coreutils
Command-line options for the non-multicall invocation of this binary, where every utility is available as a subcommand. This is used as the fallback.
Dirname
Output the parent directory of each path.
Env
Set environment variables and run command.
Factor
Print the prime factors of each specified integer number.
False
Exit with a status code indicating failure.
Mkdir
Create directories, if they do not already exist.
Printenv
Print the values of the specified environment variables.
Pwd
Print the full path of the current working directory.
Rmdir
Remove directories, if they are empty.
Seq
Print numbers from FIRST to LAST, in steps of INCREMENT.
Sleep
Pause for a specified amount of time.
Tee
Copy standard input to each FILE, and also to standard output
True
Exit with a status code indicating success.
Uname
Print system information.
Unlink
Remove files by calling the unlink function.
Wc
Print newline, word, and byte counts for each file.
Yes
Repeatedly output a line with the specified strings, or ‘y’.

Enums§

Coreutil
Utility to run

Functions§

main
Run the coreutils implementation.
multicall_parse
Check if this binary is being called as another utility, and if so, return the parsed command-line options of that utility.