Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept filenames in other plugin management commands #12639

Conversation

devyn
Copy link
Contributor

@devyn devyn commented Apr 24, 2024

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
Copy link
Collaborator

fdncred commented Apr 24, 2024

Thanks. I think this helps bring some clarity.

@fdncred fdncred merged commit b576123 into nushell:main Apr 24, 2024
15 checks passed
@hustcer hustcer added this to the v0.93.0 milestone Apr 24, 2024
@fdncred fdncred added the pr:plugins This PR is related to plugins label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:plugins This PR is related to plugins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants