No description
- Rust 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| README.md | ||
rustLibs
rustLibs is just a little library for things I use. Sometimes.
Sections
argsexecutils
args
Argument parsing utilities.
macrov1limited
use rustlib::args::macrov1limited;
let args = args!(
Args,
"setup",
true,
no_clear: "-c" | "--no-clear" => "Don't clear the screen",
gaming: "-g" | "--gaming" => "Enable gaming support",
no_flatpak: "-f" | "--no-flatpak" => "Don't use Flatpak",
);
exec
'command'
use rustlib::exec::*;
let output = command("sudo", "pkg install thing")
println!("Output: {}, Return Code: {}", output.output, output.code)
utils
'username'
Returns a string containing the username.
'clear_screen'
Prints the ASCII escape for clearing a framebuffer or something.