mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 08:36:10 +02:00
Add global mode to str trim (#2576)
* Add global mode to str trim The global mode allows skipping non-string values, and processes rows and tables as well * Add tests to action with ActionMode::Global
This commit is contained in:
@ -206,9 +206,9 @@ pub mod value {
|
||||
#[macro_export]
|
||||
macro_rules! row {
|
||||
($( $key: expr => $val: expr ),*) => {{
|
||||
let mut map = indexmap::IndexMap::new();
|
||||
let mut map = ::indexmap::IndexMap::new();
|
||||
$( map.insert($key, $val); )*
|
||||
UntaggedValue::row(map).into_untagged_value()
|
||||
::nu_protocol::UntaggedValue::row(map).into_untagged_value()
|
||||
}}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user