mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 08:14:45 +00:00
Name the module branch in the command docs
Module commands mount under /iris module <root> <command...>, so the registerCommand docs and the README example name that path.
This commit is contained in:
1 parent
616e50e605
commit
dac8baa3ab
3 files changed
+3
-3
No files matched your search
@@ -533,7 +533,7 @@ final class RuinScenes implements SceneView {
|
||||
|
||||
## Commands
|
||||
|
||||
A module adds commands to the host's command root, such as `/iris structure list`, with `registerCommand`. The same
|
||||
A module adds commands to the host's module branch, such as `/iris module structure list`, with `registerCommand`. The same
|
||||
`Command` runs on every platform; the host parses it, completes it and runs it.
|
||||
|
||||
```java
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.regex.Pattern;
|
||||
/**
|
||||
* One command: a name, sub-commands, and at most one action over typed arguments. Immutable; each method returns a
|
||||
* changed copy. A module registers its root command with {@link ToolingRegistry#registerCommand}, and the host mounts it
|
||||
* below its own command root, such as {@code /iris structure list}. A word that names a sub-command always selects it,
|
||||
* below its module branch, such as {@code /iris module structure list}. A word that names a sub-command always selects it,
|
||||
* so give a command that has children either no arguments or arguments no child is named like.
|
||||
*/
|
||||
public final class Command {
|
||||
|
||||
@@ -11,7 +11,7 @@ public interface ToolingRegistry {
|
||||
void registerView(StudioView view);
|
||||
|
||||
/**
|
||||
* Mounts {@code command} under the host's command root, such as {@code /iris structure}. The command's name, and each
|
||||
* Mounts {@code command} under the host's module branch, such as {@code /iris module structure}. The command's name, and each
|
||||
* of its aliases, is a root name; one that another module of the pack took already fails the pack load, naming
|
||||
* both modules.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user