Merge pull request #118 from nushell/fdncred_separator

type-o in code
This commit is contained in:
Darren Schroeder 2021-10-11 09:47:00 -05:00 committed by GitHub
commit 1b9b709dec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ prints out the list properly."#
) -> Result<nu_protocol::Value, nu_protocol::ShellError> { ) -> Result<nu_protocol::Value, nu_protocol::ShellError> {
let width_param: Option<String> = call.get_flag(context, "width")?; let width_param: Option<String> = call.get_flag(context, "width")?;
let color_param: bool = call.has_flag("color"); let color_param: bool = call.has_flag("color");
let seperator_param: Option<String> = call.get_flag(context, "separator")?; let separator_param: Option<String> = call.get_flag(context, "separator")?;
match input { match input {
Value::List { vals, .. } => { Value::List { vals, .. } => {
@ -65,7 +65,7 @@ prints out the list properly."#
call, call,
width_param, width_param,
color_param, color_param,
seperator_param, separator_param,
)) ))
} else { } else {
Ok(Value::Nothing { span: call.head }) Ok(Value::Nothing { span: call.head })
@ -80,7 +80,7 @@ prints out the list properly."#
call, call,
width_param, width_param,
color_param, color_param,
seperator_param, separator_param,
)) ))
} else { } else {
// dbg!(data); // dbg!(data);
@ -100,7 +100,7 @@ prints out the list properly."#
call, call,
width_param, width_param,
color_param, color_param,
seperator_param, separator_param,
)) ))
} }
x => { x => {
@ -127,8 +127,8 @@ fn create_grid_output2(
} else { } else {
80u16 80u16
}; };
let sep = if let Some(seperator) = separator_param { let sep = if let Some(separator) = separator_param {
seperator separator
} else { } else {
"".to_string() "".to_string()
}; };