Skip to content

Accept filenames in other plugin management commands - #12639

Merged
fdncred merged 1 commit into
nushell:mainfrom
devyn:accept-filenames-in-other-plugin-management-commands
Apr 24, 2024
Merged

fdncred merged 1 commit into
nushell:mainfrom
devyn:accept-filenames-in-other-plugin-management-commands

Conversation

@devyn

@devyn devyn commented Apr 24, 2024

Copy link
Copy Markdown
Contributor

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

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
@fdncred

fdncred commented Apr 24, 2024

Copy link
Copy Markdown
Contributor

Thanks. I think this helps bring some clarity.

@fdncred
fdncred merged commit b576123 into nushell:main Apr 24, 2024
@hustcer hustcer added this to the v0.93.0 milestone Apr 24, 2024
@fdncred fdncred added the deprecated:pr-plugins Deprecated: use the A:plugins label instead label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deprecated:pr-plugins Deprecated: use the A:plugins label instead

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants