use crate::errors::ShellError; use crate::prelude::*; // TODO: "Amount remaining" wrapper pub fn first(args: CommandArgs) -> Result { let amount = args.positional[0].as_i64()?; let input = args.input; Ok(input .take(amount as u64) .map(|v| ReturnValue::Value(v)) .boxed()) }