Skip to content

Commit f3b5fe0

Browse files
authored
remove the deprecated register command (#1467)
* wip * wip
1 parent ae4f256 commit f3b5fe0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

book/how_nushell_code_gets_run.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ _Before going into examples, one note about the "dynamic" and "static" terminolo
140140

141141
By insisting on strict parse-evaluation separation, we lose much of a flexibility users expect from dynamic interpreted languages, especially other shells, such as bash, fish, zsh and others. This leads to the examples at the beginning of this page not working. Let's break them down one by one
142142

143-
_Note: The following examples use [`source`](/commands/docs/source.md), but similar conclusions apply to other commands that parse Nushell source code, such as [`use`](/commands/docs/use.md), [`overlay use`](/commands/docs/overlay_use.md), [`hide`](/commands/docs/hide.md), [`register`](/commands/docs/register.md) or [`source-env`](/commands/docs/source-env.md)._
143+
_Note: The following examples use [`source`](/commands/docs/source.md), but similar conclusions apply to other commands that parse Nushell source code, such as [`use`](/commands/docs/use.md), [`overlay use`](/commands/docs/overlay_use.md), [`hide`](/commands/docs/hide.md) or [`source-env`](/commands/docs/source-env.md)._
144144

145145
### 1. Sourcing a dynamic path
146146

de/book/plugins.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
Die Funktionen von Nushell können mittels Plugins erweitert werden. Diese Plugins können einen Großteil der selben Operationen ausführen, wie die internen Befehle. Noch dazu haben Plugins den Vorteil, dass sie separat und flexibel zu Nushell hinzugefügt werden können.
44

5-
Um ein Plugin hinzuzufügen, muss es erstellt werden und dann der Befehl `register` auf dieses Plugin aufgerufen werden. Wenn das getan wird, muss Nushell auch mitgeteilt werden, welches Protokoll vom Plugin verwendet wird.
5+
Um ein Plugin hinzuzufügen, muss es erstellt werden und dann der Befehl `plugin add` auf dieses Plugin aufgerufen werden. Wenn das getan wird, muss Nushell auch mitgeteilt werden, welches Protokoll vom Plugin verwendet wird.
66

77
Ein Beispiel:
88

99
```
10-
> register ./my_plugins/nu-plugin-inc -e capnp
10+
> plugin add ./my_plugins/nu-plugin-inc -e capnp
1111
```
1212

1313
Wenn der Befehl registriert wurde, kann er als Teil der internen Befehle verwendet werden.

zh-CN/book/plugins.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ Nu 的插件是可执行的;Nu 在需要时启动它们,并通过 [stdin, st
66

77
## 添加一个插件
88

9-
要添加一个插件,请调用[`register`](/commands/docs/register.md)命令来告诉 Nu 在哪里可以找到它,与此同时,你还需要告诉 Nushell 这个插件使用什么方式进行编码。
9+
要添加一个插件,请调用[`plugin add`](/commands/docs/plugin_add.md)命令来告诉 Nu 在哪里可以找到它,与此同时,你还需要告诉 Nushell 这个插件使用什么方式进行编码。
1010

1111
Linux+macOS:
1212

1313
```nu
14-
> register --encoding=capnp ./my_plugins/my-cool-plugin
14+
> plugin add --encoding=capnp ./my_plugins/my-cool-plugin
1515
```
1616

1717
Windows:
1818

1919
```nu
20-
> register --encoding=capnp .\my_plugins\my-cool-plugin.exe
20+
> plugin add --encoding=capnp .\my_plugins\my-cool-plugin.exe
2121
```
2222

23-
[`register`](/commands/docs/register.md) 被调用时:
23+
[`plugin add`](/commands/docs/plugin_add.md) 被调用时:
2424

2525
1. Nu 启动该插件并通过 stdin 向其发送 "签名" 信息;
2626
2. 插件通过 stdout 响应,包含其签名(名称、描述、参数、标志等)的消息;

0 commit comments

Comments
 (0)