use of org.apache.nifi.toolkit.cli.impl.command.nifi.NiFiCommandGroup in project nifi by apache.
the class CommandFactory method createCommandGroups.
public static Map<String, CommandGroup> createCommandGroups(final Context context) {
final List<CommandGroup> groups = new ArrayList<>();
groups.add(new NiFiRegistryCommandGroup());
groups.add(new NiFiCommandGroup());
groups.add(new DemoCommandGroup());
groups.add(new SessionCommandGroup());
final Map<String, CommandGroup> groupMap = new TreeMap<>();
groups.stream().forEach(g -> {
g.initialize(context);
groupMap.put(g.getName(), g);
});
return Collections.unmodifiableMap(groupMap);
}
Aggregations