You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Ivan Gagarkin (Jira)" <ji...@apache.org> on 2023/07/11 10:18:00 UTC
[jira] [Created] (IGNITE-19949) Completers don't work properly in case of when different completers have the same action option
Ivan Gagarkin created IGNITE-19949:
--------------------------------------
Summary: Completers don't work properly in case of when different completers have the same action option
Key: IGNITE-19949
URL: https://issues.apache.org/jira/browse/IGNITE-19949
Project: Ignite
Issue Type: Bug
Reporter: Ivan Gagarkin
Completers don't work when they have different commands but the same option
{code:java}
@Test
void sameOptionDifferentCompleters() {
// Given
registry.register(
CompleterConf.builder()
.command("command", "subcommand")
.enableOptions("--to")
.exclusiveEnableOptions().build(),
words -> completer1
);
registry.register(
CompleterConf.builder()
.command("command", "subcommand")
.enableOptions("--to")
.exclusiveEnableOptions().build(),
words -> completer2);
// Then
assertThat(registry.findCompleters(words("user", "role", "assign", "--to")).var, containsInAnyOrder(completer1));
// And
assertThat(registry.findCompleters(words("role", "privilege", "grant", "--to")), containsInAnyOrder(completer2));
} {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)