Attempts to add a command that checks if nushell is running with admin priveleges (#5712)

* attempts to add is-admin command

* fmt and clippy

* fmt

* Update is_admin.rs

* typos

* typo in example
This commit is contained in:
pwygab
2022-06-06 19:55:23 +08:00
committed by GitHub
parent 3c421c5726
commit b8d253cbd7
5 changed files with 74 additions and 1 deletions

View File

@ -382,6 +382,7 @@ pub fn create_default_context(cwd: impl AsRef<Path>) -> EngineState {
// Experimental
bind_command! {
ViewSource,
IsAdmin,
};
// Deprecated