Eric Hodel
c039e4b3d0
Update description and error types for split-by
( #10865 )
...
# Description
`split-by` only works on a `Record`, the error type was updated to
match, and now uses a more-specific type. (Two type fixes for the price
of one!)
The `usage` was updated to say "record" as well
# User-Facing Changes
* Providing the wrong type to `split-by` now gives an error messages
with the correct required input type
Previously:
```
❯ ls | get name | split-by type
Error: × unsupported input
╭─[entry #267:1:1]
1 │ ls | get name | split-by type
· ─┬─
· ╰── requires a table with one row for splitting
╰────
```
With this PR:
```
❯ ls | get name | split-by type
Error: nu:🐚 :type_mismatch
× Type mismatch.
╭─[entry #1:1:1]
1 │ ls | get name | split-by type
· ─┬─
· ╰── requires a record to split
╰────
```
# Tests + Formatting
- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`
# After Submitting
Only generated commands need to be updated
---------
Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
2023-11-07 16:27:10 +01:00
..
2023-07-17 18:43:51 +02:00
2023-08-24 07:08:58 -05:00
2023-08-04 06:06:00 +12:00
2023-07-17 18:43:51 +02:00
2023-10-19 18:17:42 +02:00
2023-10-18 13:31:15 -05:00
2023-09-13 16:54:03 +02:00
2023-10-19 22:07:01 +02:00
2023-10-19 22:04:33 +02:00
2022-11-22 16:58:11 -08:00
2023-10-19 22:04:33 +02:00
2023-08-24 07:08:58 -05:00
2023-10-27 19:16:17 +02:00
2023-07-17 18:43:51 +02:00
2023-10-05 18:43:58 +02:00
2023-06-21 09:33:01 +12:00
2023-05-17 18:55:26 -05:00
2023-05-17 18:55:26 -05:00
2023-04-07 14:09:55 -07:00
2023-04-07 14:09:55 -07:00
2023-04-07 14:09:55 -07:00
2023-04-07 14:09:55 -07:00
2023-04-07 14:09:55 -07:00
2023-09-25 08:00:59 -05:00
2023-09-25 08:00:59 -05:00
2023-04-07 14:09:55 -07:00
2023-10-25 11:30:13 +02:00
2023-10-24 12:48:05 -05:00
2023-10-02 21:13:31 +03:00
2023-09-06 16:39:35 +08:00
2023-10-19 22:08:09 +02:00
2023-09-26 18:49:28 +02:00
2023-07-14 15:20:35 +12:00
2023-07-06 08:31:31 -07:00
2023-09-13 06:35:01 +12:00
2023-04-07 14:09:55 -07:00
2023-11-03 10:09:33 -05:00
2023-04-07 14:09:55 -07:00
2022-12-22 00:33:26 +02:00
2023-05-17 18:55:26 -05:00
2023-05-17 18:55:26 -05:00
2023-06-10 16:57:26 -05:00
2023-08-23 16:03:26 -05:00
2023-07-21 17:32:37 +02:00
2023-09-13 06:35:01 +12:00
2023-08-02 10:57:58 -05:00
2023-10-19 09:30:34 -05:00
2023-07-21 17:32:37 +02:00
2023-10-10 03:31:15 +13:00
2023-10-19 12:20:52 +02:00
2023-07-21 17:32:37 +02:00
2023-08-31 23:10:29 +02:00
2023-07-21 17:32:37 +02:00
2023-09-20 12:57:29 -05:00
2023-05-22 13:54:04 -05:00
2023-07-23 20:14:51 +02:00
2023-09-13 23:53:55 +02:00
2023-09-15 15:46:25 -05:00
2023-05-17 18:55:26 -05:00
2023-08-23 16:03:26 -05:00
2023-08-25 08:48:05 +12:00
2023-09-14 10:18:29 +12:00
2023-08-09 14:12:58 +02:00
2023-09-13 06:35:01 +12:00
2023-09-03 19:25:00 -05:00
2023-10-25 06:30:45 +08:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-10-30 07:59:48 -05:00
2023-07-21 17:32:37 +02:00
2023-10-19 22:08:09 +02:00
2023-10-13 13:45:36 -05:00
2023-07-21 17:32:37 +02:00
2023-09-16 21:49:10 +02:00
2023-03-15 18:54:55 +13:00
2023-07-17 18:43:51 +02:00
2023-07-21 17:32:37 +02:00
2023-10-25 16:35:51 +02:00
2023-10-08 13:12:46 +02:00
2023-11-01 21:25:35 +01:00
2023-10-08 13:12:46 +02:00
2023-09-28 18:49:42 +02:00
2023-07-17 18:43:51 +02:00
2023-09-12 14:06:56 +08:00
2023-07-21 17:32:37 +02:00
2023-07-17 18:43:51 +02:00
2023-11-07 16:35:24 +08:00
2023-08-18 20:45:10 +03:00
2023-10-19 22:08:09 +02:00
2023-04-28 13:25:44 +02:00
2023-04-28 13:25:44 +02:00
2023-04-28 13:25:44 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-08-31 23:10:29 +02:00
2023-11-07 16:27:10 +01:00
2023-10-19 22:08:09 +02:00
2023-09-01 00:08:27 +02:00
2023-09-25 18:17:42 +02:00
2022-12-22 16:38:07 -08:00
2023-07-21 17:32:37 +02:00
2023-04-28 13:25:44 +02:00
2023-07-17 18:43:51 +02:00
2023-10-18 13:31:15 -05:00
2023-10-30 07:59:48 -05:00
2023-10-19 19:23:06 +02:00
2023-07-21 17:32:37 +02:00
2023-10-08 13:12:46 +02:00
2023-08-31 23:11:04 +02:00
2023-08-31 23:11:04 +02:00
2023-10-02 21:13:31 +03:00
2023-08-29 13:18:52 -07:00
2023-07-20 19:10:53 -05:00
2023-09-13 06:35:01 +12:00
2023-07-17 18:43:51 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00