mirror of
https://github.com/nushell/nushell
synced 2025-01-08 11:18:58 +00:00
15 lines
342 B
Rust
15 lines
342 B
Rust
|
use crate::errors::ShellError;
|
||
|
use crate::prelude::*;
|
||
|
|
||
|
pub fn debug(args: CommandArgs, _registry: &CommandRegistry) -> Result<OutputStream, ShellError> {
|
||
|
let input = args.input;
|
||
|
|
||
|
Ok(input
|
||
|
.values
|
||
|
.map(|v| {
|
||
|
println!("{:?}", v);
|
||
|
ReturnSuccess::value(v)
|
||
|
})
|
||
|
.to_output_stream())
|
||
|
}
|