useshi::command::EchoCommand;useshi::leaf;useshi::shell::Shell;useanyhow::Result;fnmain()->Result<()>{// Instantiate a shell, with the prompt '| '.
letmut shell =Shell::new("| ");
shell.register(leaf!(EchoCommand::new()))?;// Start the shell run loop. This will make the program begin its input-output loop.
shell.run()?;Ok(())}