use crate::commands::command::CommandAction; use crate::commands::WholeStreamCommand; use crate::errors::ShellError; use crate::prelude::*; pub struct Next; impl WholeStreamCommand for Next { fn run( &self, args: CommandArgs, registry: &CommandRegistry, ) -> Result { next(args, registry) } fn name(&self) -> &str { "n" } fn signature(&self) -> Signature { Signature::build("n") } } fn next(_args: CommandArgs, _registry: &CommandRegistry) -> Result { Ok(vec![Ok(ReturnSuccess::Action(CommandAction::NextShell))].into()) }