nushell/crates/nu-path/src
Devyn Cairns b576123b0a
Accept filenames in other plugin management commands (#12639)
# Description

This allows the following commands to all accept a filename instead of a
plugin name:

- `plugin use`
- `plugin rm`
- `plugin stop`

Slightly complicated because of the need to also check against
`NU_PLUGIN_DIRS`, but I also fixed some issues with that at the same
time

Requested by @fdncred

# User-Facing Changes

The new commands are updated as described.

# Tests + Formatting

Tests for `NU_PLUGIN_DIRS` handling also made more robust.

- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`

# After Submitting

- [ ] Double check new docs to make sure they describe this capability
2024-04-24 06:28:45 -05:00
..
dots.rs Fix typos in comments (#12052) 2024-03-03 06:28:56 -06:00
expansions.rs Accept filenames in other plugin management commands (#12639) 2024-04-24 06:28:45 -05:00
helpers.rs Use XDG_CONFIG_HOME before default config directory (#12118) 2024-03-11 06:15:46 -05:00
lib.rs Accept filenames in other plugin management commands (#12639) 2024-04-24 06:28:45 -05:00
tilde.rs Fix tilde-expansion for multi-byte unicode chars (#10434) 2023-09-21 04:04:28 +12:00
util.rs Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00