You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of v3.4, creating an alias for a command is done as follows:
CommandRegistrationcommandRegistration() {
returnCommandRegistration.builder()
.command("mycommand")
// define alias as myalias
.withAlias()
.command("myalias")
.and()
// define alias as myalias1 and myalias2
.withAlias()
.command("myalias1", "myalias2")
.and()
.build();
}
The DSL methods command("alias").and() are repetitive. I suggest to shorten them as follows:
CommandRegistrationcommandRegistration() {
returnCommandRegistration.builder()
.command("mycommand")
// define a single alias
.withAlias("myalias")
// or define multiple ones at once
.withAlias("myalias1", "myalias2")
.build();
}
The text was updated successfully, but these errors were encountered:
As of v3.4, creating an alias for a command is done as follows:
The DSL methods
command("alias").and()
are repetitive. I suggest to shorten them as follows:The text was updated successfully, but these errors were encountered: