pub struct EnvPlugin;Expand description
Standalone plugin providing a single env command.
Prints environment variable names and values, skipping any name that looks sensitive (see the module-level filtering rule). The variable name itself is always shown for hidden entries — only its value is withheld — so the count and presence of hidden variables stays visible without leaking their contents.
§YAML config
commands:
- name: env
implementation: env_show
description: "Show environment variables (sensitive ones hidden)"
required: false
arguments: []
options: []§Example
use dynamic_cli::plugin::{EnvPlugin, Plugin};
let plugin = EnvPlugin::new();
assert_eq!(plugin.name(), "env");
let handlers = plugin.handlers();
assert_eq!(handlers.len(), 1);
assert_eq!(handlers[0].0, "env_show");Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EnvPlugin
impl RefUnwindSafe for EnvPlugin
impl Send for EnvPlugin
impl Sync for EnvPlugin
impl Unpin for EnvPlugin
impl UnsafeUnpin for EnvPlugin
impl UnwindSafe for EnvPlugin
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more