nushell/crates/nu-command/src
Bruce Weirdan 39b95fc59e
Environment-aware help for open and save (#15651)
# Description

This extends the documentation on the commands `open` and `save` can run
under the hood, and explicitly lists those, based on the current user
environment.

Also see [this discord
thread](https://discord.com/channels/601130461678272522/988303282931912704/1364930487092777020)

# User-Facing Changes

Users will be able to see the list of commands that `open` and `save`
can run, and the extensions that each command is run for, in `help open`
and `help save` respectively:

## `help open`

![image](https://github.com/user-attachments/assets/b245d12c-c6ef-4c6d-a9f1-6c5111cb0684)

## `help save`

![image](https://github.com/user-attachments/assets/e92ddb6b-6a1e-40cc-9139-78db8a921d4a)


# Tests + Formatting

All pass except for the ones that don't (and never did pass for me
before).

# After Submitting

No updates needed.
2025-05-03 17:07:39 -05:00
..
bytes fix range bugs in str substring, str index-of, slice, bytes at (#14863) 2025-01-30 06:50:01 -06:00
charting Add Filesize type (#14369) 2024-11-29 21:24:17 +00:00
conversions feat: duration from record (#15600) 2025-04-19 18:29:12 -05:00
database Refactor I/O Errors (#14927) 2025-01-28 16:03:31 -06:00
date Fix examples about RFC3339 format in date now and format date. (#15563) 2025-04-26 19:06:08 -05:00
debug add --raw-value option to debug command (#15581) 2025-04-17 12:12:07 -05:00
env Add job tags (#15555) 2025-04-21 20:08:00 +08:00
experimental Update job_recv.rs (#15673) 2025-05-01 06:19:32 -05:00
filesystem Environment-aware help for open and save (#15651) 2025-05-03 17:07:39 -05:00
filters refactor Value::follow_cell_path to reduce clones and return Cow (#15640) 2025-05-01 09:43:57 -05:00
formats Fix #14660: to md breaks on tables with empty values (#15631) 2025-04-24 09:09:48 -05:00
generators seq date: generalize to allow any duration for --increment argument (#14903) 2025-01-25 13:24:39 -06:00
hash add binary as input to hash commands (#13923) 2024-09-25 16:47:52 +08:00
help Rework operator type errors (#14429) 2025-02-12 20:03:40 -08:00
math Fix clippy (#15489) 2025-04-06 09:49:28 +08:00
misc More precise ErrorKind::NotFound errors (#15149) 2025-02-22 11:42:44 -05:00
network change http get header example to use a record (#15674) 2025-05-01 09:42:53 -05:00
path Replace some PipelineMismatch by OnlySupportsThisInputType by shell error (#15447) 2025-04-07 12:25:27 +02:00
platform refactor Value::follow_cell_path to reduce clones and return Cow (#15640) 2025-05-01 09:43:57 -05:00
random Update rand and rand_chacha to 0.9 (#15463) 2025-04-01 07:15:39 -05:00
removed refactor: rename subcommand structs (#15309) 2025-03-14 02:00:35 +01:00
shells Jobs (#14883) 2025-02-25 12:09:52 -05:00
stor Run-time pipeline input typechecking tweaks (#14922) 2025-02-02 15:51:47 -05:00
strings Numbers proceeded with the escape character ignored fix (#15684) 2025-05-03 08:10:51 -05:00
system Inter-Job direct messaging (#15253) 2025-04-26 23:24:35 +08:00
viewers Add 'single' to supported table modes (#15681) 2025-05-02 16:21:11 -05:00
default_context.rs Inter-Job direct messaging (#15253) 2025-04-26 23:24:35 +08:00
example_test.rs Implementing ByteStream interuption on infinite stream (#13552) 2025-01-11 13:28:08 -08:00
lib.rs Start to Add WASM Support Again (#14418) 2024-11-30 07:57:11 -06:00
progress_bar.rs Cut down unnecessary lint allows (#14335) 2024-11-15 19:24:39 +01:00
sort_utils.rs refactor Value::follow_cell_path to reduce clones and return Cow (#15640) 2025-05-01 09:43:57 -05:00