nushell/crates/nu-command/src/strings
Antoine Stevan 4763801cb2
add nothing -> table to format date (#11290)
this will allow to run
```nushell
format date --list | get 0
```
and get
```
─────────────┬───────────────────────────────────────────────────────────
Specification│%Y
Example      │2023
Description  │The full proleptic Gregorian year, zero-padded to 4 digits.
─────────────┴───────────────────────────────────────────────────────────
```
instead of currently
```
Error: nu::parser::input_type_mismatch

  × Command does not support string input.
   ╭─[entry #2:1:1]
 1 │ format date --list | get 0
   ·                      ─┬─
   ·                       ╰── command doesn't support string input
   ╰────
```
2023-12-11 13:21:17 +01:00
..
encode_decode Convert Shellerror::GenericError to named fields (#11230) 2023-12-07 00:40:03 +01:00
format add nothing -> table to format date (#11290) 2023-12-11 13:21:17 +01:00
split Convert Shellerror::GenericError to named fields (#11230) 2023-12-07 00:40:03 +01:00
str_ Convert Shellerror::GenericError to named fields (#11230) 2023-12-07 00:40:03 +01:00
char_.rs Use long options for string (#10777) 2023-10-19 22:08:09 +02:00
detect_columns.rs Convert more examples and tests to record! macro (#10840) 2023-10-28 14:52:31 +02:00
mod.rs remove size command in favor of str stats (#10784) 2023-11-17 06:49:19 +08:00
parse.rs Convert Shellerror::GenericError to named fields (#11230) 2023-12-07 00:40:03 +01:00