Skip to content

Conversation

@jesper-olsen
Copy link
Contributor

Traits PluginCommand + SimplePluginCommand:
usage was renamed description in v. 0.98

https://www.nushell.sh/blog/2024-09-17-nushell_0_98_0.html#breaking-plugin-changes-toc

Traits PluginCommand + SimplePluginCommand:
usage was renamed description in v. 0.98

https://www.nushell.sh/blog/2024-09-17-nushell_0_98_0.html#breaking-plugin-changes-toc
@fdncred
Copy link
Contributor

fdncred commented Dec 30, 2024

Thanks! extra_usage was also renamed extra_description. are there any of those that need updating too?

@jesper-olsen
Copy link
Contributor Author

Yes - "Under the hood" section needs a few updates as well.
https://www.nushell.sh/contributor-book/plugins.html#under-the-hood

The examples mostly work the same under 0.101.0, except this one

echo '{"Hello":{"protocol":"nu-plugin","version":"0.101.0","features":[]}}{"Call":[0,{"Run":{"name":"len","call":{"head":{"start":100953,"end":100957},"positional":[],"named":[]},"input":{"Value":{"String":{"val":"hello","span":{"start":100953,"end":100957}}}}}}]}' | target/release/nu_plugin_len --stdio
json{"Hello":{"protocol":"nu-plugin","version":"0.101.0","features":[{"name":"LocalSocket"}]}}
Plugin `len` error: Plugin failed to decode: invalid type: map, expected tuple variant PipelineDataHeader::Value at line 1 column 123

@jesper-olsen jesper-olsen closed this by deleting the head repository Dec 31, 2024
sholderbach added a commit to sholderbach/nushell.github.io that referenced this pull request Jan 9, 2025
Forgot to follow up nushell/nushell#13598 here.

Supersede that part of closed nushell#1724
sholderbach added a commit that referenced this pull request Jan 9, 2025
* Fixup `usage`->`description` in plugin stuff

Forgot to follow up nushell/nushell#13598 here.

Supersede that part of closed #1724

* Fix table headers along similar lines

* Fix whitespace in table header
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.

2 participants