| Crates.io | get-shell |
| lib.rs | get-shell |
| version | 0.1.0 |
| created_at | 2021-01-20 20:26:08.931456+00 |
| updated_at | 2021-01-20 20:26:08.931456+00 |
| description | A simple library to get the shell your binary is runned from |
| homepage | |
| repository | https://gitlab.com/johnmeow/is-root |
| max_upload_size | |
| id | 344626 |
| size | 5,739 |
get-shell
A simple library to get the shell your binary is runned from
Add get-shell = "0.1.0" to [dependencies] section in your Cargo.toml
use get_shell::get_shell_name;
println!("{}", get_shell_name().unwrap());