mirror of
https://github.com/nushell/nushell.git
synced 2024-10-17 15:52:50 +02:00
c0a1d18e3d
* feat: update #4455, regenerate commands' docs * chore: update make_docs script
837 B
837 B
title | layout | version |
---|---|---|
register | command | 0.59.0 |
Register a plugin
Signature
> register (plugin) (signature) --encoding --shell
Parameters
plugin
: path of executable for pluginsignature
: Block with signature description as json object--encoding {string}
: Encoding used to communicate with plugin. Options: [capnp, json]--shell {path}
: path of shell used to run plugin (cmd, sh, python, etc)
Examples
Register nu_plugin_extra_query
plugin from ~/.cargo/bin/ dir
> register -e capnp ~/.cargo/bin/nu_plugin_extra_query
Register nu_plugin_extra_query
plugin from nu -c
(plugin will be available in that nu session only)
> let plugin = ((which nu).path.0 | path dirname | path join 'nu_plugin_extra_query'); nu -c $'register -e capnp ($plugin); version'