| Crates.io | hand |
| lib.rs | hand |
| version | 0.1.2 |
| created_at | 2024-03-04 10:29:16.840631+00 |
| updated_at | 2024-07-24 00:23:58.433112+00 |
| description | Easy to use, pretty cmd log for lazy devs |
| homepage | https://github.com/nomoreqwerty/hand |
| repository | https://github.com/nomoreqwerty/hand |
| max_upload_size | |
| id | 1161531 |
| size | 21,684 |
Thanks to jesusprubio for the idea
stderruse hand::*;
fn main() {
// Basic usage
infoln!("This is an info message");
warnln!("This is a warning message");
errorln!("This is an error message");
// Without new line
info!("Scanning dogs ... ");
successln!("complete");
// With scope
scopeinfoln!("scope", "Some message with a scope");
// Support formatting!
let error_msg = "file not found";
scopeerrorln!("critical", "Critical error: {}", error_msg);
infoln!("Continuing in {} seconds", 3);
waitln!("Cooldown {} seconds", std::time::Duration::from_millis(3000).as_secs());
}