@@ -125,6 +125,12 @@ public class HelpTest {
|
||||
methodTarget = MethodTarget.of("thirdCommand", commands(), "The last command.");
|
||||
result.put("third-command", methodTarget);
|
||||
|
||||
methodTarget = MethodTarget.of("firstCommandInGroup", commands(), "The first command in a separate group.", "Example Group");
|
||||
result.put("first-group-command", methodTarget);
|
||||
|
||||
methodTarget = MethodTarget.of("secondCommandInGroup", commands(), "The second command in a separate group.", "Example Group");
|
||||
result.put("second-group-command", methodTarget);
|
||||
|
||||
return result;
|
||||
};
|
||||
}
|
||||
@@ -169,5 +175,15 @@ public class HelpTest {
|
||||
|
||||
}
|
||||
|
||||
@ShellMethod
|
||||
public void firstCommandInGroup() {
|
||||
|
||||
}
|
||||
|
||||
@ShellMethod
|
||||
public void secondCommandInGroup() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
AVAILABLE COMMANDS&
|
||||
&
|
||||
Default&
|
||||
1st-command, first-command: A rather extensive description of some command.&
|
||||
second-command, yet-another-command: The second command. This one is known under several aliases as well.&
|
||||
third-command: The last command.&
|
||||
&
|
||||
Example Group&
|
||||
first-group-command: The first command in a separate group.&
|
||||
second-group-command: The second command in a separate group.&
|
||||
&
|
||||
|
||||
Reference in New Issue
Block a user