You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `random dice` command has been rewritten in Nushell and moved to the standard library. The `random dice` built-in is still available with a deprecation error, but will be removed in 0.108. The new command can be used as follows:
@@ -178,23 +187,23 @@ open -r tests/fixtures/formats/jt.xml
178
187
179
188
While the most popular architectures use little endian, many people are used to reading binary numbers as little endian. However, until now, if you were in a little endian system, you would get:
# retrieve the data column from the table as structured data
286
-
stor open | query db"select data from my_table"
287
-
# => ╭───┬───────────╮
288
-
# => │ # │ data │
289
-
# => ├───┼───────────┤
290
-
# => │ 0 │ ╭───┬───╮ │
291
-
# => │ │ │ 0 │ 1 │ │
292
-
# => │ │ │ 1 │ 2 │ │
293
-
# => │ │ │ 2 │ 3 │ │
294
-
# => │ │ ╰───┴───╯ │
295
-
# => ╰───┴───────────╯
309
+
[38;5;14m> [1m[36mstor open[22m[39m [1m[35m|[22m[39m [1m[36mquery db[22m[39m [32m"select data from my_table"[39m
310
+
╭───┬───────────╮
311
+
│ [1m[32m#[22m[39m │ [1m[32mdata[22m[39m │
312
+
├───┼───────────┤
313
+
│ [1m[32m0[22m[39m │ ╭───┬───╮ │
314
+
│ │ │ [1m[32m0[22m[39m │ 1 │ │
315
+
│ │ │ [1m[32m1[22m[39m │ 2 │ │
316
+
│ │ │ [1m[32m2[22m[39m │ 3 │ │
317
+
│ │ ╰───┴───╯ │
318
+
╰───┴───────────╯[0m
296
319
```
297
320
298
321
### New `random choice` command in `std-rfc`
299
322
300
323
The `random choice` command has been added as a new candidate for our standard library. This command can randomly sample a number of elements from a list:
The `std-rfc/str` module has new command in this release, `str align`. This command will look for a substring (such as a delimiter), and add padding so that it is in the same column in all lines. It can also take a range to only align any number of lines.
### `get`, `select`, `reject` can `--ignore-case` of cell-path
@@ -371,13 +396,13 @@ If you're using any of the `--output-*` switches, and want `string_value` column
371
396
372
397
Previously, converting values to `binary` with `into binary` could only do so in the native endianness of your platform. Using native endianness is still the default, but with the `--endian` flag, you get to choose:
Note that this only affects `int`, `float`, `filesize`, `bool` and `duration` (i.e. it does not affect `string`s, `date`s and `binary`). Likewise, only the individual elements in `table`s and `record`s are affected (not the `table` or `record` itself)
@@ -402,12 +427,12 @@ Note that this only affects `int`, `float`, `filesize`, `bool` and `duration` (i
402
427
403
428
The `http` subcommands can now maintain a list of redirects when using the `--full` flag. This will be stored in a new `urls` column:
[31m×[39m The `ls` command doesn't have flag `full-path`.
530
+
╭─[[1m[4m[36mentry #45:1:4[22m[24m[39m]
531
+
[2m1[22m │ ls --full-path
532
+
· [1m[35m ─────┬─────[22m[39m
533
+
· [1m[35m╰── unknown flag[22m[39m
534
+
╰────[36m
535
+
help: [39mDid you mean: `--full-paths`?[0m
511
536
```
512
537
513
538
### Improved default color theme
514
539
515
540
We changed the default theme to use the ANSI default color (`39m`) instead of white (`37m`).
516
541
This finally makes the default theme usable in the context of light terminal color settings. On dark terminal palettes this change should have no impact.
517
542
518
-
<imgwidth="1351"height="507"alt="Comparison of white vs default color on Solarized Light theme"src="https://github.com/user-attachments/assets/db80fe07-0cea-4a4b-ba14-e6a31f29cfe1" />
543
+
Comparison of white vs default color on Solarized Light theme, before and after:
Previously `detect columns` created records (rows) with duplicate key names under some circumstances. The resulting table behaved inconsistently with different commands:
0 commit comments