diff --git a/lib/clientele/src/subcommands.rs b/lib/clientele/src/subcommands.rs index 812082e..686e51e 100644 --- a/lib/clientele/src/subcommands.rs +++ b/lib/clientele/src/subcommands.rs @@ -48,6 +48,18 @@ impl SubcommandsProvider { pub fn iter(&self) -> impl Iterator { self.commands.iter() } + + pub fn into_iter(self) -> impl Iterator { + self.commands.into_iter() + } + + pub fn get_commands(&self) -> &Vec { + &self.commands + } + + pub fn into_commands(self) -> Vec { + self.commands + } } #[cfg(unix)]