Skip to content

Generate plugin banner for all plugin commands #1519

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

Merged
merged 6 commits into from
Aug 21, 2024

Conversation

NotTheDr01ds
Copy link
Contributor

@NotTheDr01ds NotTheDr01ds commented Aug 20, 2024

Fixes #1515

Previously, a few commands were hard-coded as being plugin commands, and a banner was generated for the command doc accordingly. This was out-of-date, as not even Polars was showing up properly. There's still code to generate a warning for dfr commands. (Oops - Forgot to take this out - Brb.) (Okay - Done)

After this change, plugin list is used to return a list of plugin commands, and if a command is in that list, the banner is added.

Example:

@NotTheDr01ds
Copy link
Contributor Author

Note: This is branched from #1518 - Best to merge that first if possible.

@hustcer hustcer merged commit ef1e4cb into nushell:main Aug 21, 2024
2 checks passed
@hustcer
Copy link
Contributor

hustcer commented Aug 21, 2024

Thanks for the fix, the plugin docs have already been updated: https://www.nushell.sh/commands/docs/polars.html

@NotTheDr01ds NotTheDr01ds deleted the plugin-warning branch October 1, 2024 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Commands provided by a plugin should appear in the Commands doc differently
2 participants