add search terms for is-admin (#5939)

This commit is contained in:
pwygab 2022-07-03 19:44:26 +08:00 committed by GitHub
parent c6f6dcb57c
commit 3a38fb94f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,10 @@ impl Command for IsAdmin {
Signature::build("is-admin").category(Category::Core)
}
fn search_terms(&self) -> Vec<&str> {
vec!["root", "admin", "administrator", "superuser", "supervisor"]
}
fn run(
&self,
_engine_state: &EngineState,